uno icon indicating copy to clipboard operation
uno copied to clipboard

[SKIA] `CanOpenFlyoutByKeyboard` is failing when using Fluent styles due to lifecycle problems

Open ramezgerges opened this issue 10 months ago • 2 comments

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

ramezgerges avatar Apr 23 '24 20:04 ramezgerges

cc. @Youssef1313

ramezgerges avatar Apr 23 '24 20:04 ramezgerges

Just that I don't forget what's happening when I'll get to this:

  1. CalendarView template changes from null to the UWP template
  2. CalendarView template changes from UWP template to Fluent v2 template
  3. CalendarDatePicker gets loaded
  4. Test calls focus on CalendarDatePicker, and it's focused properly.
  5. Test presses enter to open the calendar date picker
  6. IsCalendarOpen changes to true
  7. 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.

Youssef1313 avatar Apr 23 '24 21:04 Youssef1313