Installing extended WPF Toolkit

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.