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


In This Topic
    DateTimeUpDown Class
    In This Topic

    Represents a control that allows a user to increment or decrement a DateTime using button spinners, up/down keys, or the 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 DateTimeUpDown 
       Inherits Xceed.Wpf.Toolkit.Primitives.DateTimeUpDownBase(Of Nullable(Of Date))
       Implements Xceed.Wpf.Toolkit.Core.Input.IValidateInput 
    'Usage
     
    Dim instance As DateTimeUpDown
    [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 DateTimeUpDown : Xceed.Wpf.Toolkit.Primitives.DateTimeUpDownBase<Nullable<DateTime>>, Xceed.Wpf.Toolkit.Core.Input.IValidateInput  
    Remarks
    Users select the part (DateTimePart) of the date-time they wish to modify in the interface and then interact with the mouse wheel, spinner buttons, or up/down arrow keys.
    Example
    The following example shows how to use a custom format.
    <xctk:DateTimeUpDown Format="Custom" FormatString="hh:mm tt" Value="13:30" />
    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.Primitives.DateTimeUpDownBase<T>
                                  Xceed.Wpf.Toolkit.DateTimeUpDown
                                     Xceed.Wpf.Toolkit.Primitives.DateTimePickerBase
                                     Xceed.Wpf.Toolkit.PropertyGrid.Editors.PropertyGridEditorDateTimeUpDown

    Requirements

    See Also