Calendar::DisplayModeChanged Event
.NET Framework (current version)
Occurs when the DisplayMode property is changed.
Assembly: PresentationFramework (in PresentationFramework.dll)
The following example creates a calendar that displays the months in a year and handles the DisplayModeChanged event so that when the user clicks on a month or the year, the calendar does not change its DisplayMode.
<Calendar DisplayMode="Year" DisplayModeChanged="Calendar_DisplayModeChanged" />
.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Available since 4.0
Silverlight
Available since 2.0
Show: