Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit Namespace / DoubleUpDown Class
Members Example


In This Topic
    DoubleUpDown Class
    In This Topic
    Represents a textbox with button spinners that allow incrementing and decrementing double values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.
    Syntax
    'Declaration
     
    <TemplatePartAttribute(Name="PART_TextBox", Type=System.Windows.Controls.TextBox)>
    <StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class DoubleUpDown 
       Inherits Xceed.Wpf.Toolkit.CommonNumericUpDown(Of Double)
       Implements Xceed.Wpf.Toolkit.Core.Input.IValidateInput 
    'Usage
     
    Dim instance As DoubleUpDown
    [TemplatePart(Name="PART_TextBox", Type=System.Windows.Controls.TextBox)]
    [StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class DoubleUpDown : Xceed.Wpf.Toolkit.CommonNumericUpDown<double>, Xceed.Wpf.Toolkit.Core.Input.IValidateInput  
    Remarks
    When using the DecimalUpDown in data-binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. You can also specify whether the user can directly edit the values in the text box by setting the IsReadOnly property. If you would like to get the actual formatted string representation of the value, you can use the Text property.
    Example
    The following shows how to create a DoubleUpDown, setting the FormatString, Value, Increment, Maximimum, and Minimum values.
    <xctk:DoubleUpDown FormatString="F3" Value="1564.6749586" Increment=".001"  Maximum="200000.599" />
    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
                         Xceed.Wpf.Toolkit.Primitives.InputBase
                            Xceed.Wpf.Toolkit.Primitives.UpDownBase<T>
                               Xceed.Wpf.Toolkit.NumericUpDown<T>
                                  Xceed.Wpf.Toolkit.CommonNumericUpDown<T>
                                     Xceed.Wpf.Toolkit.DoubleUpDown
                                        Xceed.Wpf.Toolkit.PropertyGrid.Editors.PropertyGridEditorDoubleUpDown

    Requirements

    See Also