Xceed Toolkit for Maui v2.0 Documentation
DateTimePicker Class
Members  Example 


Xceed.Maui.Toolkit Assembly > Xceed.Maui.Toolkit Namespace : DateTimePicker Class
A control offering a TextBox that can be used to edit a DateTime value, 2 RepeatButtons that can be used to increase or decrease said DateTime value & a DropDownButton which can be used to open either a Calendar that allows to manually pick the DateOnly value or a TimePicker that allows to manually pick the TimeOnly value. 
Object Model
DateTimePicker ClassButtonSpinner ClassTextBox Class
Syntax
'Usage
 
Dim instance As DateTimePicker
Remarks
The formatting of the DateTime value can be set with either predefined or custom formats.
Example

The following code would display this control:

Clicking on the Time Button would then display this control:

<xctk:DateTimePicker WidthRequest="400"/>
Inheritance Hierarchy

System.Object
   Microsoft.Maui.Controls.BindableObject
      Microsoft.Maui.Controls.Element
         Microsoft.Maui.Controls.NavigableElement
            Microsoft.Maui.Controls.VisualElement
               Microsoft.Maui.Controls.View
                  Microsoft.Maui.Controls.Compatibility.Layout
                     Microsoft.Maui.Controls.TemplatedView
                        Xceed.Maui.Toolkit.Control
                           Xceed.Maui.Toolkit.InputBase
                              Xceed.Maui.Toolkit.UpDownBase<T>
                                 Xceed.Maui.Toolkit.DateTimeUpDownBase<T>
                                    Xceed.Maui.Toolkit.DateTimeUpDown
                                       Xceed.Maui.Toolkit.DateTimePicker

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DateTimePicker Members
Xceed.Maui.Toolkit Namespace