Extended WPF Toolkit can be said to be a complement to WPF Toolkit, and also contains a number of WPF controls for developers to use. This article describes some of the new controls in extended WPF Toolkit 1.4.0.
Installing extended WPF Toolkit
Extended WPF Toolkit installation is simple, and using NuGet, you can quickly add a library of controls to your project. Right-click references Select "Add Library package Reference ..."
You can find the control library by entering "Extended WPF Toolkit" name in the search box, and click "Install" installation.
To add a new xmlns to XAML:
xmlns:exttoolkit= "Http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
Calculator
Calculator
This control is handy if you want to add a calculator function to a WPF program. Features: math operation, memory operation, mouse/keyboard support. Add the following code to the XAML:
<exttoolkit:calculator width= "/>"
Calculatorupdown
Calculatorupdown is actually a textbox, which adds a number of buttons and the Calculator drop-down menu function.
<exttoolkit:calculatorupdown formatstring= "C2" increment= "0.01" width= "$" maximum= "5000.00" Minimum= " 50.00 " watermark=" Enter Value "/>
FormatString Adjusting Numeric formats
Format specifier |
Name |
C |
Currency |
F |
Fixed Point |
G |
General |
N |
Number |
P |
Percent |
Increment control the difference between the increment and decrement of each value
Maximun/minimum Control value Max/min
Watermark Input Box watermark
Color Picker
Colorcanvas
The Advanced color selection feature is added to the control to get R, G, B, a related values:
<exttoolkit:colorcanvas width= "/>"
ColorPicker
In addition to the standard color selection, advanced selection features are also added:
<exttoolkit:colorpicker displaycolorandname= "True" width= "$"/>
Input box
Similar to Calculatorupdown, there are other input box controls:
· DateTimePicker
· Datetimeupdown
· Decimalupdown
· Doubleupdown
· Integerupdown
· Timepicker
· Watermarktextbox
Keys
SplitButton
In addition to the function of the button itself, the control also features a drop-down menu, which allows you to add a drop-down menu control to the right of the key:
<exttoolkit:splitbutton content= "click" width= "height=" > <exttoolkit: splitbutton.dropdowncontent> <exttoolkit:calculator/> </exttoolkit: Splitbutton.dropdowncontent></exttoolkit:splitbutton>
Reference documents
http://wpftoolkit.codeplex.com/
Http://wpftoolkit.codeplex.com/documentation
Installing extended WPF Toolkit