Class DateTimePicker
Represents control that displays a selected date and allows to change it.
[DefaultBindingProperty("Value")]
[ControlCategory("Date")]
public class DateTimePicker : CustomDateEdit, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, INotifyDataErrorInfo
- Inheritance
-
DateTimePicker
- Implements
Remarks
Examples of how a DateTimePicker can look on different platforms:
Constructors
- DateTimePicker()
Initializes a new instance of the DateTimePicker class.
- DateTimePicker(Control)
Initializes a new instance of the DateTimePicker class.
Properties
- ControlKind
Returns control identifier.
- MaxDate
Gets or sets the maximum date and time that can be selected in the control.
- MinDate
Gets or sets the minimum date and time that can be selected in the control.
- PopupKind
Gets or sets whether to show calendar popup or edit date with spin control. Currently only DropDown is implemented.
- UseMaxDate
Gets or sets whether to use MaxDate for the date range limitation.
- UseMinDate
Gets or sets whether to use MinDate for the date range limitation.
- Value
Gets or sets the value assigned to the DateTimePicker as a selected DateTime.
Methods
- OnValueChanged(EventArgs)
Called when the value of the Value property changes.
- RaiseValueChanged(EventArgs)
Raises the ValueChanged event and calls OnValueChanged(EventArgs).
- SetFocus()
Sets input focus to the control.
- SetRange(DateTime, DateTime)
Sets possible date range in the native control.
Events
- ValueChanged
Occurs when the Value property has been changed in some way.


