ComponentOne FinancialChart for WPF
C1NumericBox Class
Members 



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

See Also

Reference

C1NumericBox Members
C1.WPF Namespace