uno
uno copied to clipboard
[SKIA] `CanOpenFlyoutByKeyboard` is failing when using Fluent styles due to lifecycle problems
Current behavior
No response
Expected behavior
No response
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
cc. @Youssef1313
Just that I don't forget what's happening when I'll get to this:
- CalendarView template changes from null to the UWP template
- CalendarView template changes from UWP template to Fluent v2 template
- CalendarDatePicker gets loaded
- Test calls focus on CalendarDatePicker, and it's focused properly.
- Test presses enter to open the calendar date picker
- IsCalendarOpen changes to true
- CalendarView template changes from Fluent v2 template to UWP template
So, the element that got focused when the CalendarDatePicker is opened is HeaderButton that was materialized from Fluent v2 template. Then, when the CalendarView template changes back to UWP template, things, the focused HeaderButton is no longer in the visual tree and things go very wrong.