-
Notifications
You must be signed in to change notification settings - Fork 803
Description
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
- Open and run the attached sample.
- Click the
Open Custom Flyoutbutton to open the Flyout containing theCalendarView. - Navigate from
Monthview toYear, thenDecade, and back toMonth. - Click outside or
Close Flyoutbutton to close the Flyout. - Reopen Flyout (which now displays the
Monthview). - Navigate to
Yearview and hover over the cells—notice that the cells are unresponsive. - Navigate to
Decadeview 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