Table of Contents

Class DateTimePicker

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

Represents control that displays a selected date and allows to change it.

[DefaultBindingProperty("Value")]
[ControlCategory("Common")]
public class DateTimePicker : CustomDateEdit, IBaseObject, IDisposableObject, IInputElement, ISupportInitialize, IFocusable, IWin32Window, ITextProperty, IComponent, IDisposable
Inheritance
DateTimePicker
Implements
Extension Methods

Remarks

Examples of how a DateTimePicker can look on different platforms:

Constructors

DateTimePicker()

Initializes a new instance of the DateTimePicker class.

Fields

ValueProperty

Identifies the Value dependency property.

Properties

ControlKind

Returns control identifier.

Kind

Gets or sets whether to edit date part or time part of the DateTime value.

PopupKind

Gets or sets whether to show calendar popup or edit date with spin control.

Value

Gets or sets the value assigned to the DateTimePicker as a selected DateTime.

Methods

BindValue(string)

Binds Value to the specified property of the DataContext

OnValueChanged(EventArgs)

Called when the value of the Value property changes.

RaiseValueChanged(EventArgs)

Raises the ValueChanged event and calls OnValueChanged(EventArgs).

SetRange(DateTime, DateTime)

Sets possible date range in the native control.

Events

ValueChanged

Occurs when the Value property has been changed in some way.