DatePicker::CalendarOpened Event

 

Occurs when the drop-down Calendar is opened.

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

public:
event RoutedEventHandler^ CalendarOpened {
	void add(RoutedEventHandler^ value);
	void remove(RoutedEventHandler^ value);
}

<DatePicker CalendarOpened="eventhandler"/>

The following example creates a DatePicker and provides instructions to the user. When the user opens or closes the Calendar, the instructions are updated.

<StackPanel>
  <TextBlock Name="textBlock1" 
             Text="Enter a date or click the calendar."/>
  <DatePicker CalendarOpened="DatePicker_CalendarOpened"
              CalendarClosed="DatePicker_CalendarClosed"/>
</StackPanel>
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: