Not logged in
Resend Validation E-mail
Code Writer App
Part-based and masked editors, for everything from date/time to currency entry
Source Code Available
Bundled in WPF Studio
Bundled in WPF Essentials
WPF Blog Entries
More WPF Controls
Help topics cover all controls and product features in great detail.
Many full-source demos and QuickStarts are included.
Configure the product using Visual Studio and Expression Blend designer enhancements.
Rock Solid Code
All pre-obfuscated code is scanned by the VS Code Analysis tool, and warnings resolved.
Parts-based editors uses individual controls, called parts, to present and modify discreet values in an associated object or objects.
Several default implementations are provided for common .NET types, or you can build your own.
Built-In Edit Boxes
The DateTimeEditBox and TimeSpanEditBox can be used to update the parts of a DateTime or TimeSpan, respectively.
Both controls allow you to easily specify how the parts should be displayed using standard or custom format strings.
The drop-down of the DateTimeEditBox selectively includes a calendar and/or clock, which can be used to update the value as well.
The controls used in the drop-down are can be easily customized or completely replaced.
These controls support the standard format strings, which allow you to specify various aspects of how the value is displayed.
A calculator is used as the default control for the associated drop-down, which can be used to interactively calculate a new value.
The BrushEditBox and ColorEditBox can be used to easily and intuitively input a Brush or Color, respectively.
The drop-down controls include a color specturm control and associated color component sliders.
The alpha component can be optionally displayed or modified.
A BrushEditBox editing a linear gradient brush
The BrushEditBox includes full support for linear and radial gradient brushes.
The EnumEditBox can be used to modify an enumeration value.
In most cases, the list of possible values can be automatically gathered, including support for flag enumerations.
An EnumEditBox modifying a flags enumeration value
Several type-specific implementation of the parts-based editor are provided.
These controls can be used as-is or as the basis for a custom control.
In addition, you can build a parts-based editor for any custom types you may have using the existing framework.
A complete example showing how to build a parts-based editor for U.S. Social Security Numbers is included in our Sample Browser.
Default and Custom Items
Each type-specific implementation of the parts-based editor includes several default items, such as a drop-down button (like in a ComboBox) and spinner buttons.
In addition to these default items, any number of custom items can be added, through XAML or a code-behind file.
A DateTimeEditBox with a custom delete button to the left of the drop-down button
Custom items are intermixed with the default items, and their order can be quickly and easily customized.
For example, you can insert a custom button before, after, or in between any of the default items.
Drop Down Content
The drop-down of all edit boxes can be fully customized, but default content is defined for most edit boxes.
All type-specific parts-based editors support null values, with value-types leveraging the Nullable class.
An optional check box is included as a default item, which can be used by the end-user to set the associated value to null.
In addition, an initial value can be specified which is used to initialize the associated value from null, when the end-user checks the associated check box or enters a value in an associated part.
Special null content, also known as a watermark, can be displayed when the associated value is null.
This content is fully customizable through the use of a DataTemplate or DataTemplateSelector.
This allows you to include controls such as buttons or images, or to handle certain events, such as mouse hover.
Nearly all of the parts provided can have their associated value incremented or decremented using the default spinner buttons or by using the up/down arrow keys.
Minimum and maximum values can be specified for most of the type-specific parts-based editors.
For aggregate types, such as Point, Rect, and Size, the minimum and maximum values can be used to restrict the individual parts.
Code Writer App
Log in to add comments
Related clip arts and images