Search code examples
c#datepickerwindows-store-appswinrt-xaml

Determine if datepicker is open


I'm developing a Windows Store App and I'm trying to determine when the datepicker control is in open state (user can select a option from the list), but i can't find a option to determine this state of the control.

When using the ComboBox there is a property ComboBox.IsDropDownOpen, but there is no equivalent in the DatePicker or the TimePicker control.

Does anyone know how i could achieve the same on a datepicker control?


Solution

    1. Select the DatePicker -> Edit Template -> Edit a Copy
    2. Add a handler for DropDownOpened event for each ComboBox in the template