简体   繁体   English

设置扩展的WPF工具包

[英]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 我试图在Visual Studio中使用Extended WPF Toolkit,但是按照他们网站上的简短指南遇到困难: 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. 我已经通过NuGet安装了它,当我右键单击工具箱并尝试启用一些新元素时,我可以看到它们已经启用。 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. 添加using语句不会给我一个错误,因此VS似乎可以识别它。

I suspect it has something to do with XAML files. 我怀疑这与XAML文件有关。

  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, ) 在XAML文件的顶部添加新的xmlns(例如,xmlns:xctk =“ http://schemas.xceed.com/wpf/xaml/toolkit”)在XAML中,使用名称空间前缀(在上面的示例中, )

  2. In your XAML, use the namespace prefix (in the above example, ) 在您的XAML中,使用名称空间前缀(在上面的示例中,)

I really have no idea what to make of this. 我真的不知道该怎么做。 I'm not even sure if I have any XAML files. 我什至不确定我是否有任何XAML文件。 Sorry if this question is really trivial, but I'm fairly new to VS and coding in general. 抱歉,这个问题确实不重要,但是对于VS和一般而言,我还是陌生的。

您必须手动添加它们-右键单击“工具箱”菜单,然后为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(xml命名空间)设置为

xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" in <Window> tag xmlns:xctk =“ http://schemas.xceed.com/wpf/xaml/toolkit”在<Window>标记中

and then build your program to resolve all dependencies. 然后构建您的程序以解决所有依赖性。

Later use <xctk:> tag.. 以后使用<xctk:>标签。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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