In Focus

Adding Reference to WPF Toolkit Extended Assembly

This blog talks about how to add reference to the WPF Toolkit Extended Assembly.

Adding Reference to WPF Toolkit Extended Assembly

This blog is referenced in several of my articles. 

To use a control that is defined in the WPF Toolkit Extended, you must add reference to the WPFToolkit.Extended.dll assembly. You can download Extended WPF Tookit from the CodePlex or you can use the WPFToolkit.Extended.dll available with this download. All you need is the DLL. 

After downloading the WPFToolkit.Extended.dll, you can add reference to your project by right clicking on the project name in Visual Studio, select Add Reference and browse the DLL.  

See Figure 1. 

BI1.jpg

Figure 1

Once the assembly reference is added, the next step is to import the namespace in XAML using the xmlns. As soon as you type xmlns in XAML you should see the http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended option in the list. See Figure 2. If you do not see this URL, please read the next section.

 

BI2.jpg

Figure 2

Unblocking the WPF Toolkit Assembly

If an assembly reference is not added to your project correctly, you will see the following message when you build your application.

Unable to load the metadata for assembly 'WPFToolkit.Extended' 

You get this message when try to add reference to the Extended WPF Toolkit to a project and build the project.  The problem here is when you download an assembly from a Website, it is block by default. All you need to do is, unblock the assembly. 

Right click on the DLL and click Unblock button. 

See Figure 3.   

BI3.jpg

Figure 3

Remove and add reference again in your project to reflect the changes.