Mahesh Alle Mahesh Alle - 3 months ago 54
ASP.NET (C#) Question

Extended WPF Toolkit - How to add reference to project?

I am new to WPF. I want to use datetime picker. I have downloaded the "Extended WPF Toolkit - 1.9.0" from below site.

I have unzip file and found two dll. One is "WPFToolkit.dll" and "Xceed.Wpf.Toolkit.dll".

Now How to add these two dll in my project? and
How to use datetime control in my project.


First, reference those dlls in your project.
Right click on References in the Solution Explorer and click Add Reference, now browse and add the two dlls.

Second, build the project once to enable intellisense in XAML for the newly added dlls.

Third, in your XAML file add the following namespace


Tip: Type xmlns:customName="wpftool" and you should be able to see the intellisense list all the relevant namespaces.

Heres the XAML code:

<Window x:Class="WpfApplication1.MainWindow"
        Title="MainWindow" Height="350" Width="525">
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        <wpfTool:DateTimePicker Grid.Row="0">