Skip to content

[TimePicker][DatePicker] Opened-Closed VisualStates #10330

@moseeeu

Description

@moseeeu

Describe the bug

Currently, TimePicker and DatePicker controls do not have Opened-Closed VisualStates like the ComboBox control. This limitation makes it difficult to apply custom animations or styles when the popup is opened or closed, restricting flexibility in UI design and user interaction.

Expected Behavior:

  • Introduce Opened and Closed VisualStates for both TimePicker and DatePicker controls.
  • Allow developers to trigger animations or style changes based on the open/close state of the dropdown or popup.

Current Behavior:

  • There are no built-in VisualStates to detect when the TimePicker or DatePicker popup is opened or closed.
  • Developers have to rely on workarounds, such as event handlers, which are less intuitive and harder to maintain.

Example Scenario:

When using ComboBox, developers can easily define visual transitions for opening and closing the dropdown using:

Image

Having similar VisualStates in TimePicker and DatePicker would simplify UI customization and improve code consistency across controls.

Benefits:

  • Enhanced UI customization capabilities.
  • Consistent behavior across commonly used controls (ComboBox, DatePicker, TimePicker).
  • Simplified development workflow by reducing the need for custom workarounds.

Thank you for considering this feature request!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-DateTimePickersDatePicker, TimePicker, CalendarDatePicker, CalendarViewfeature proposalNew feature proposalteam-ControlsIssue for the Controls team

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions