Table of Contents

Class CalendarDatePicker

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

Represents a control that allows a user to pick a date from a calendar display.

public class CalendarDatePicker : Button, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource, IAppearanceControl, IIconControl
Inheritance
CalendarDatePicker
Implements
Inherited Members

Examples

<ui:CalendarDatePicker />

Fields

DateProperty

Identifies the Date dependency property.

public static readonly DependencyProperty DateProperty

Field Value

DependencyProperty

FirstDayOfWeekProperty

Identifies the FirstDayOfWeek dependency property.

public static readonly DependencyProperty FirstDayOfWeekProperty

Field Value

DependencyProperty

IsCalendarOpenProperty

Identifies the IsCalendarOpen dependency property.

public static readonly DependencyProperty IsCalendarOpenProperty

Field Value

DependencyProperty

IsTodayHighlightedProperty

Identifies the IsTodayHighlighted dependency property.

public static readonly DependencyProperty IsTodayHighlightedProperty

Field Value

DependencyProperty

Properties

Date

Gets or sets the date currently set in the calendar picker.

[Bindable(true)]
public DateTime? Date { get; set; }

Property Value

DateTime?

FirstDayOfWeek

Gets or sets the day that is considered the beginning of the week.

public DayOfWeek FirstDayOfWeek { get; set; }

Property Value

DayOfWeek

IsCalendarOpen

Gets or sets a value indicating whether the calendar view of the CalendarDatePicker is currently shown.

[Bindable(true)]
public bool IsCalendarOpen { get; set; }

Property Value

bool

IsTodayHighlighted

Gets or sets a value indicating whether the current date is highlighted.

public bool IsTodayHighlighted { get; set; }

Property Value

bool

Methods

OnClick()

Called when a Button is clicked.

protected override void OnClick()

OnPopupOpened(object?, EventArgs)

protected virtual void OnPopupOpened(object? sender, EventArgs e)

Parameters

sender object
e EventArgs

OnSelectedDatesChanged(object?, SelectionChangedEventArgs)

protected virtual void OnSelectedDatesChanged(object? sender, SelectionChangedEventArgs e)

Parameters

sender object
e SelectionChangedEventArgs