How do I make the Extended WPF Toolkit ColorPicker work?

I would like to be able to use this color picker in my application:

http://wpftoolkit.codeplex.com/wikipage?title=ColorPicker&referringTitle=Documentation

I'm using Visual Studio 2010 Ultimate with .NET 4 installed. I'm coding in C# and WPF (XAML).

What I've done so far:

  • Downloaded and unzipped WPFToolkit.Extended.dll
  • Added a reference to it in Visual Studio (can I verify this somehow?)
  • Added this line to MainWindow.xaml.cs: using Xceed.Wpf.Toolkit;
  • Added the bold line to MainWindow.xaml:

    < Window x:Class="TDDD49Task2.ColorWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit/" [...]>

  • Tried to use < xctk:ColorPicker> in MainWindow.xaml (Error message: "The type 'xctk:ColorPicker' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.").

  • Googled for a solution, tutorial or example without much success.

  • Please explain how the Extended WPF Toolkit is used or point me in the right direction.


    Its worked for me though but the namespace you included is incorrect. Remove the last backslash at the end . It should be -

    xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
    

    instead of

    xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit/"
    

    This error occur also when you don't unblock the assembly.

    Below is short instruction to this:

  • Right click on the "WPFToolkit.Extended.dll".
  • Click Unblock in the Security section.
  • 链接地址: http://www.djcxy.com/p/5896.html

    上一篇: App.xaml找不到名称空间IocContainter MVVM

    下一篇: 如何使扩展WPF工具包ColorPicker工作?