Table of Contents

Class DatePicker

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

Lets the user pick a date from a visual calendar.

public class DatePicker : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, IValue<DateTime>, IValue
Inheritance
DatePicker
Implements
Inherited Members

Constructors

DatePicker()

Initializes a new instance of DatePicker.

DatePicker(DateTime)

Initializes a new instance of DatePicker with the specified date.

Properties

Culture

CultureInfo for date. The default is CultureInfo.CurrentCulture.

Text

The text displayed by the View.

Value

Gets or sets the date value of the DatePicker.

Methods

Dispose(bool)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

OnDrawingText()

Called when the Text of the View is to be drawn.

OnValueChanged(ValueChangedEventArgs<DateTime>)

Called when the DatePicker Value has changed.

OnValueChanging(ValueChangingEventArgs<DateTime>)

Called when the DatePicker Value is changing.

Events

ValueChanged

Raised when Value has changed.

ValueChanging

Raised when Value is about to change. Set Handled to true to cancel the change.