The C1NumericBox control is a numeric editor that allows you to display and edit numeric values in many formats.
Namespace:
C1.XamlAssembly: C1.Xaml (in C1.Xaml.dll)
Syntax
| C# |
|---|
[TemplateVisualStateAttribute(Name = "HideButtons", GroupName = "ButtonsVisibilityStates")] [TemplateVisualStateAttribute(Name = "Unfocused", GroupName = "FocusStates")] [TemplateVisualStateAttribute(Name = "Valid", GroupName = "ValidationStatesStates")] [TemplateVisualStateAttribute(Name = "Focused", GroupName = "FocusStates")] [TemplateVisualStateAttribute(Name = "Normal", GroupName = "CommonStates")] [StyleTypedPropertyAttribute(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))] public class C1NumericBox : Control |
| Visual Basic |
|---|
<TemplateVisualStateAttribute(Name := "HideButtons", GroupName := "ButtonsVisibilityStates")> _ <TemplateVisualStateAttribute(Name := "Unfocused", GroupName := "FocusStates")> _ <TemplateVisualStateAttribute(Name := "Valid", GroupName := "ValidationStatesStates")> _ <TemplateVisualStateAttribute(Name := "Focused", GroupName := "FocusStates")> _ <TemplateVisualStateAttribute(Name := "Normal", GroupName := "CommonStates")> _ <StyleTypedPropertyAttribute(Property := "ValidationDecoratorStyle", StyleTargetType := GetType(C1ValidationDecorator))> _ Public Class C1NumericBox _ Inherits Control |
Remarks
Format()()()() property supports standard and custom formats.Watermark()()()() property shows help text when the control is empty.AllowNull()()()() property allows binding to and displaying null values.
When the control is empty, or bound to a null value, the Value()()()() property returns double.NaN.
Inheritance Hierarchy
System..::..Object
DependencyObject
UIElement
FrameworkElement
Control
C1.Xaml..::..C1NumericBox
DependencyObject
UIElement
FrameworkElement
Control
C1.Xaml..::..C1NumericBox