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.

DatePicker.CalendarClosed Event

Occurs when the drop-down Calendar is closed.

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

public event RoutedEventHandler CalendarClosed
<sdk:DatePicker CalendarClosed="eventhandler"/>

The following code contains two event handlers, which update a TextBlock when the Calendar is opened or closed. This example is part of a larger example available in the DatePicker overview.

//Simple event handlers that updates a TextBlock when 
//the drop-down calendar is opened or closed.
void dp1_CalendarOpened(object sender, RoutedEventArgs e)
    text1.Text = "DatePicker Calendar opened!";
void dp1_CalendarClosed(object sender, RoutedEventArgs e)
    text1.Text = "DatePicker Calendar closed!";


Supported in: 5, 4, 3

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft