Class DateTimeItem
Represents a selectable object for each DateTime part inside the SfDateTimeCombo.
Inheritance
System.Object
    DateTimeItem
  Namespace: Syncfusion.UI.Xaml.Controls.Input
Assembly: Syncfusion.SfInput.UWP.dll
Syntax
[ClassReference(IsReviewed = false)]
public class DateTimeItem : ComboBox
  Remarks
DateTimeItem is a Windows.UI.Xaml.Controls.Control
Constructors
DateTimeItem()
Initializes a new instance of the DateTimeItem.
Declaration
public DateTimeItem()
  See Also
Fields
DateTimePartProperty
Using a DependencyProperty as the backing store for DateTimePart. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty DateTimePartProperty
  Field Value
| Type | 
|---|
| Windows.UI.Xaml.DependencyProperty | 
Properties
DateTimeCombo
Initializes a variable for SfDateTimeCombo class.
Declaration
public SfDateTimeCombo DateTimeCombo { get; set; }
  Property Value
| Type | 
|---|
| SfDateTimeCombo | 
DateTimePart
Gets or sets the currently selected specific date/time part for DateTimeItem.
Declaration
[ClassReference(IsReviewed = false)]
public DateTimePart DateTimePart { get; set; }
  Property Value
| Type | Description | 
|---|---|
| DateTimePart | The default value is Day.  | 
      
Remarks
Use to hold the currently selected specific date/time part value.
See Also
Methods
ArrangeOverride(Size)
Gets the size of the overrided controls
Declaration
protected override Size ArrangeOverride(Size finalSize)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.Foundation.Size | finalSize | 
Returns
| Type | 
|---|
| Windows.Foundation.Size | 
GetContainerForItemOverride()
Returns the container for overrided items
Declaration
protected override DependencyObject GetContainerForItemOverride()
  Returns
| Type | 
|---|
| Windows.UI.Xaml.DependencyObject | 
IsItemItsOwnContainerOverride(Object)
Checks whether item its own container override
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | item | 
Returns
| Type | 
|---|
| System.Boolean | 
OnKeyDown(KeyRoutedEventArgs)
Called when a key is pressed
Declaration
protected override void OnKeyDown(KeyRoutedEventArgs e)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.UI.Xaml.Input.KeyRoutedEventArgs | e | 
PrepareContainerForItemOverride(DependencyObject, Object)
Arranges the container for overrided items
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.UI.Xaml.DependencyObject | element | |
| System.Object | item |