Delen via


CalendarView.DisplayMode Property

Definition

Gets or sets a value that indicates whether the calendar shows a picker for month, year, or decade.

public:
 property CalendarViewDisplayMode DisplayMode { CalendarViewDisplayMode get(); void set(CalendarViewDisplayMode value); };
CalendarViewDisplayMode DisplayMode();

void DisplayMode(CalendarViewDisplayMode value);
public CalendarViewDisplayMode DisplayMode { get; set; }
var calendarViewDisplayMode = calendarView.displayMode;
calendarView.displayMode = calendarViewDisplayMode;
Public Property DisplayMode As CalendarViewDisplayMode
<CalendarView DisplayMode="calendarViewDisplayModeMemberName" />

Property Value

A value of the enumeration that indicates whether the calendar shows a picker for month, year, or decade. The default is Month.

Applies to