Skip to content

CalendarView Selection becomes unresponsive when added as Flyout.Content #10273

@VishalOmprasad

Description

@VishalOmprasad

Describe the bug

When the CalendarView control is added as the content of a Flyout, its cell selection becomes unresponsive after performing a specific sequence of actions multiple times. The issue occurs when the Flyout is closed and reopened, and the user navigates through different calendar views using the header.

For example, opening the Flyout via a button click, navigating from Month view to Year, then Decade, and back to Month works correctly the first time. After closing and reopening the Flyout (displaying Month view), if the user navigates to the Year view, cells become unresponsive but navigating to Decade view restores cell responsiveness. The cells in the view which is first navigated when the Flyout is closed and then opened are unresponsive.

Sample: CalendarIssue.zip

Note: This issue also occurs in CalendarDatePicker.

Steps to reproduce the bug

  1. Open and run the attached sample.
  2. Click the Open Custom Flyout button to open the Flyout containing the CalendarView.
  3. Navigate from Month view to Year, then Decade, and back to Month.
  4. Click outside or Close Flyout button to close the Flyout.
  5. Reopen Flyout (which now displays the Month view).
  6. Navigate to Year view and hover over the cells—notice that the cells are unresponsive.
  7. Navigate to Decade view and hover over the cells—notice that the cells are now responsive.

Expected behavior

All cells in the CalendarView across all views (Month, Year, and Decade) should remain responsive to mouse hover and click actions, even after reopening the Flyout and navigating between different views.

Screenshots

CalendarView

WinUI-CalendarView-Cell-Interaction-issue.mp4

CalendarDatePicker

WinUI-CalendarDatePicker-Cell-Interaction-issue.mp4

NuGet package version

WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003

Windows version

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-DateTimePickersDatePicker, TimePicker, CalendarDatePicker, CalendarViewbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions