Skip to content

Question regarding uses of APIs incompatible with AppWindow and DesktopWindowXamlSource #6886

@lukeblevins

Description

@lukeblevins

How certain are we that erroneous uses of APIs incompatible with AppWindow and DesktopWindowXamlSource do not linger in platform XAML or WinUI?

As mentioned here, it is advisable for UWP developers to make their visual layer portable across the windowing hosts with XamlRoot.

I spent a considerable amount of time implementing AppWindow support for secondary views in a WinUI 2 UWP app only to find that hovering over elements in any MenuFlyout on the secondary views and quickly having the mouse pointer exit the flyout (or app) will block input to the entire application until I open the Start menu or ALT-TAB out of it. No exceptions anywhere to be found.

I have reason to believe this issue is present only when leveraging the UWP AppWindow, because it never occurred in the main ApplicationView.

Some more testing indicated that this problem only appears in the V2 styles and does NOT occur in platform XAML or with the v1 WinUI styles enabled.

I would love to contribute a fix for this, but it seems impossible to debug as the v1 and v2 styles look similar enough. Moreover, WinUI 3 is still closed source despite our continued feedback

Sample app
AppWindowBugRepro.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions