简体   繁体   中英

Setting up Extended WPF Toolkit

I'm trying to get Extended WPF Toolkit working in Visual Studio but I'm having difficulties following the short guide on their website: http://wpftoolkit.codeplex.com/releases/view/610794

I've installed it via NuGet and when I right click into the toolbox and try to enable some of the new elements, I can see their are already enabled. They do not however appear in the toolbox itself.

Adding a using statement doesn't give me an error, so VS seems to recognize it.

I suspect it has something to do with XAML files.

  1. Add a new xmlns (for example, xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit") to the top of XAML files In your XAML, use the namespace prefix (in the above example, )

  2. In your XAML, use the namespace prefix (in the above example, )

I really have no idea what to make of this. I'm not even sure if I have any XAML files. Sorry if this question is really trivial, but I'm fairly new to VS and coding in general.

您必须手动添加它们-右键单击“工具箱”菜单,然后为WPF Extended Toolkit添加新选项卡,然后选择“选择项目...”,选择“ WPF组件”选项卡并浏览到已安装的DLL(安装到应用程序文件夹中的packages \\ Extended.Wpf.Toolkit.2.3 \\ lib \\ net40)。

If I have understood your question correctly, You need to set xmlns (xml namespace) as

xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" in <Window> tag

and then build your program to resolve all dependencies.

Later use <xctk:> tag..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM