Setting up Extended WPF Toolkit

时间:2016-04-25 08:57:34

标签: c# wpf visual-studio xaml

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.

2 个答案:

答案 0 :(得分:2)

You have to manually add them - right click in the Toolbox menu, then add a new tab for WPF Extended Toolkit, then select "Choose Items...", select the WPF Components tab & browse to the DLL that you installed (mine was installed to packages\Extended.Wpf.Toolkit.2.3\lib\net40 in the application folder).

答案 1 :(得分:0)

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..