ComponentOne FinancialChart for WPF
C1.WPF Namespace / C1NumericBox Class
Members



In This Topic
    C1NumericBox Class
    In This Topic
    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)>
    <TemplateVisualStateAttribute(Name="ShowButtons", GroupName="ButtonsVisibilityStates")>
    <StyleTypedPropertyAttribute(Property="ValidationDecoratorStyle", StyleTargetType=C1.WPF.C1ValidationDecorator)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class C1NumericBox 
       Inherits System.Windows.Controls.Control
    'Usage
     
    
    Dim instance As C1NumericBox
    [LicenseProvider()]
    [TemplatePart(Name="Text", Type=C1.WPF.C1TextBoxBase)]
    [TemplateVisualState(Name="ShowButtons", GroupName="ButtonsVisibilityStates")]
    [StyleTypedProperty(Property="ValidationDecoratorStyle", StyleTargetType=C1.WPF.C1ValidationDecorator)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class C1NumericBox : System.Windows.Controls.Control 
    [LicenseProvider()]
    [TemplatePart(Name="Text", Type=C1.WPF.C1TextBoxBase)]
    [TemplateVisualState(Name="ShowButtons", GroupName="ButtonsVisibilityStates")]
    [StyleTypedProperty(Property="ValidationDecoratorStyle", StyleTargetType=C1.WPF.C1ValidationDecorator)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public ref class C1NumericBox : public System.Windows.Controls.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.Threading.DispatcherObject
          System.Windows.DependencyObject
             System.Windows.Media.Visual
                System.Windows.UIElement
                   System.Windows.FrameworkElement
                      System.Windows.Controls.Control
                         C1.WPF.C1NumericBox

    See Also