ComponentOne Basic Library for WPF and Silverlight
C1NumericBox Class
Members 


C1.Silverlight Namespace : C1NumericBox Class
The C1NumericBox control is a numeric editor that allows you to display and edit numeric values in many formats.
Object Model
C1NumericBox Class
Syntax
'Declaration
 
<System.Windows.TemplateVisualStateAttribute(Name="Normal", GroupName="CommonStates")>
<System.Windows.TemplateVisualStateAttribute(Name="InvalidUnfocused", GroupName="ValidationStatesStates")>
<System.Windows.TemplateVisualStateAttribute(Name="InvalidFocused", GroupName="ValidationStatesStates")>
<System.Windows.StyleTypedPropertyAttribute(Property="ValidationDecoratorStyle", StyleTargetType=C1.Silverlight.C1ValidationDecorator)>
<System.Windows.TemplatePartAttribute(Name="Increase", Type=System.Windows.Controls.Primitives.RepeatButton)>
<System.Windows.TemplatePartAttribute(Name="Decrease", Type=System.Windows.Controls.Primitives.RepeatButton)>
<System.Windows.TemplateVisualStateAttribute(Name="ShowButtons", GroupName="ButtonsVisibilityStates")>
<System.Windows.TemplateVisualStateAttribute(Name="HideButtons", GroupName="ButtonsVisibilityStates")>
<System.Windows.TemplateVisualStateAttribute(Name="MouseOver", GroupName="CommonStates")>
<System.Windows.TemplateVisualStateAttribute(Name="Disabled", GroupName="CommonStates")>
<System.Windows.TemplatePartAttribute(Name="Text", Type=C1.Silverlight.C1TextBoxBase)>
<System.Windows.TemplateVisualStateAttribute(Name="Focused", GroupName="FocusStates")>
<System.Windows.TemplateVisualStateAttribute(Name="Unfocused", GroupName="FocusStates")>
<System.Windows.TemplateVisualStateAttribute(Name="Valid", GroupName="ValidationStatesStates")>
Public Class C1NumericBox 
   Inherits System.Windows.Controls.Control
'Usage
 
Dim instance As C1NumericBox
[System.Windows.TemplateVisualState(Name="Normal", GroupName="CommonStates")]
[System.Windows.TemplateVisualState(Name="InvalidUnfocused", GroupName="ValidationStatesStates")]
[System.Windows.TemplateVisualState(Name="InvalidFocused", GroupName="ValidationStatesStates")]
[System.Windows.StyleTypedProperty(Property="ValidationDecoratorStyle", StyleTargetType=C1.Silverlight.C1ValidationDecorator)]
[System.Windows.TemplatePart(Name="Increase", Type=System.Windows.Controls.Primitives.RepeatButton)]
[System.Windows.TemplatePart(Name="Decrease", Type=System.Windows.Controls.Primitives.RepeatButton)]
[System.Windows.TemplateVisualState(Name="ShowButtons", GroupName="ButtonsVisibilityStates")]
[System.Windows.TemplateVisualState(Name="HideButtons", GroupName="ButtonsVisibilityStates")]
[System.Windows.TemplateVisualState(Name="MouseOver", GroupName="CommonStates")]
[System.Windows.TemplateVisualState(Name="Disabled", GroupName="CommonStates")]
[System.Windows.TemplatePart(Name="Text", Type=C1.Silverlight.C1TextBoxBase)]
[System.Windows.TemplateVisualState(Name="Focused", GroupName="FocusStates")]
[System.Windows.TemplateVisualState(Name="Unfocused", GroupName="FocusStates")]
[System.Windows.TemplateVisualState(Name="Valid", GroupName="ValidationStatesStates")]
public class C1NumericBox : System.Windows.Controls.Control 
Remarks
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

See Also

Reference

C1NumericBox Members
C1.Silverlight Namespace