Partager via


Calendar.DisplayMode Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value indicating whether the calendar is displayed in months, years, or decades.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls (in System.Windows.Controls.dll)

Syntax

'Declaration
Public Property DisplayMode As CalendarMode
public CalendarMode DisplayMode { get; set; }
<sdk:Calendar DisplayMode="modeValue"/>

XAML Values

Property Value

Type: System.Windows.Controls.CalendarMode
A value indicating what length of time the Calendar should display.

Remarks

Dependency property identifier field: DisplayModeProperty

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.