The C1NumericBox control is a numeric editor that allows you to display and edit numeric values in many formats.
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
C# |
---|
[TemplatePartAttribute(Name = "Text", Type = typeof(C1TextBoxBase))] [TemplateVisualStateAttribute(Name = "Disabled", GroupName = "CommonStates")] [TemplateVisualStateAttribute(Name = "InvalidFocused", GroupName = "ValidationStatesStates")] [TemplatePartAttribute(Name = "Increase", Type = typeof(RepeatButton))] [TemplatePartAttribute(Name = "Decrease", Type = typeof(RepeatButton))] [TemplateVisualStateAttribute(Name = "ShowButtons", GroupName = "ButtonsVisibilityStates")] [TemplateVisualStateAttribute(Name = "HideButtons", GroupName = "ButtonsVisibilityStates")] [TemplateVisualStateAttribute(Name = "MouseOver", GroupName = "CommonStates")] [StyleTypedPropertyAttribute(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))] [TemplateVisualStateAttribute(Name = "Normal", GroupName = "CommonStates")] [TemplateVisualStateAttribute(Name = "Focused", GroupName = "FocusStates")] [TemplateVisualStateAttribute(Name = "Unfocused", GroupName = "FocusStates")] [TemplateVisualStateAttribute(Name = "Valid", GroupName = "ValidationStatesStates")] [TemplateVisualStateAttribute(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")] public class C1NumericBox : Control |
Visual Basic |
---|
<TemplatePartAttribute(Name := "Text", Type := GetType(C1TextBoxBase))> _ <TemplateVisualStateAttribute(Name := "Disabled", GroupName := "CommonStates")> _ <TemplateVisualStateAttribute(Name := "InvalidFocused", GroupName := "ValidationStatesStates")> _ <TemplatePartAttribute(Name := "Increase", Type := GetType(RepeatButton))> _ <TemplatePartAttribute(Name := "Decrease", Type := GetType(RepeatButton))> _ <TemplateVisualStateAttribute(Name := "ShowButtons", GroupName := "ButtonsVisibilityStates")> _ <TemplateVisualStateAttribute(Name := "HideButtons", GroupName := "ButtonsVisibilityStates")> _ <TemplateVisualStateAttribute(Name := "MouseOver", GroupName := "CommonStates")> _ <StyleTypedPropertyAttribute(Property := "ValidationDecoratorStyle", StyleTargetType := GetType(C1ValidationDecorator))> _ <TemplateVisualStateAttribute(Name := "Normal", GroupName := "CommonStates")> _ <TemplateVisualStateAttribute(Name := "Focused", GroupName := "FocusStates")> _ <TemplateVisualStateAttribute(Name := "Unfocused", GroupName := "FocusStates")> _ <TemplateVisualStateAttribute(Name := "Valid", GroupName := "ValidationStatesStates")> _ <TemplateVisualStateAttribute(Name := "InvalidUnfocused", GroupName := "ValidationStatesStates")> _ 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
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
C1.Silverlight..::..C1NumericBox
C1.Silverlight.Extended.PropertyGrid..::..NumericEditor
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
C1.Silverlight..::..C1NumericBox
C1.Silverlight.Extended.PropertyGrid..::..NumericEditor