Reputation: 329
I am new to WPF. I want to use datetime picker. I have downloaded the "Extended WPF Toolkit - 1.9.0" from below site.
http://wpftoolkit.codeplex.com/releases/view/96972
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.
Upvotes: 23
Views: 71590
Reputation: 2938
In XAML you should add:
For AvalonDock:
xmlns:xcad="http://schemas.xceed.com/wpf/xaml/avalondock"
For WPF Toolkit:
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
Upvotes: 4
Reputation: 111
Installation Extended Toolkit using NuGet
Install NuGet
Open your Visual Studio.
Open your solution/project.
Open Tools menu, select Library Package Manager and select Package Manager Console
Run the following command "Install-Package Extended.Wpf.Toolkit"
then try you will get the namespace.
NuGet package page (available since 17 June 2016)
Upvotes: 10
Reputation: 345
Graphical Way to add the controls in VS 2013
Upvotes: 11
Reputation: 4109
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
xmlns:wpfTool="clr-namespace:Xceed.Wpf.Toolkit;assembly=Xceed.Wpf.Toolkit"
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"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:wpfTool="clr-namespace:Xceed.Wpf.Toolkit;assembly=Xceed.Wpf.Toolkit"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<wpfTool:DateTimePicker Grid.Row="0">
</wpfTool:DateTimePicker>
</Grid>
</Window>
Upvotes: 54