Calendar::DisplayModeChanged Event

 

Occurs when the DisplayMode property is changed.

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

public:
event EventHandler<CalendarModeChangedEventArgs^>^ DisplayModeChanged {
	void add(EventHandler<CalendarModeChangedEventArgs^>^ value);
	void remove(EventHandler<CalendarModeChangedEventArgs^>^ value);
}

<Calendar DisplayModeChanged="eventhandler"/>

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.

No code example is currently available or this language may not be supported.
<Calendar DisplayMode="Year" DisplayModeChanged="Calendar_DisplayModeChanged" />
No code example is currently available or this language may not be supported.

.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Return to top
Show: