DatePicker

A date and time picker.

Uses the native picker's intrinsic size unless View.Width constrains it.

public class DatePicker : Control

Properties

Date

The picked date, in local time.

Type: Bindable<DateTime>

public Bindable<DateTime> Date { get; set; }

DateChanged

Invoked with the new value whenever the user picks a date.

Type: Action<DateTime>?

public Action<DateTime>? DateChanged { get; set; }

Kind

How the picker presents itself.

Type: DatePickerStyle

public DatePickerStyle Kind { get; set; }

Maximum

The latest pickable date, or null for no bound.

Type: DateTime?

public DateTime? Maximum { get; set; }

Minimum

The earliest pickable date, or null for no bound.

Type: DateTime?

public DateTime? Minimum { get; set; }

Mode

What the picker lets the user pick.

Type: DatePickerMode

public DatePickerMode Mode { get; set; }

Methods

MeasureOverride

Content measurement. Panels recurse; controls delegate to the native SizeThatFits.

protected override Size MeasureOverride(
  Size availableSize)
ParameterSummary
Size availableSizeThe size available for the view's content.

Returns

  • Size: The desired content size.