The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
.NET Framework (current version)
Occurs when the drop-down
Calendar is opened. Namespace:
PresentationFramework (in PresentationFramework.dll)
public event RoutedEventHandler CalendarOpened
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 >
private void DatePicker_CalendarOpened( object sender, RoutedEventArgs e)
textBlock1.Text = "Select a date from the calendar";
private void DatePicker_CalendarClosed( object sender, RoutedEventArgs e)
textBlock1.Text = "Enter a date or click the calendar";
.NET Framework Available since 4.0 Silverlight Available since 2.0 Return to top