Skip to content

WinUIEx 1.3.0 DPI handling causing a crash when moving a window between monitors #37

@FinnurHrafn

Description

@FinnurHrafn

After having successfully used WinUIEx in a WinUI 3 app with earlier versions I updated to v1.3.0. At first everything worked smooth and moving the app window between monitors worked as expected. However a got reports from a fellow developer that this version was causing crashes when moving the app windows between monitors. I also tested the app with a different set of monitors and then I got the crash behavior when moving between windows. There seems to be some edge case in these situations. We are using Windows 11.

I made an app with the Blank App, Packaged (WinUI 3 in Desktop) template. Spent 5 minutes adding a nuget package reference to WinUIEx 1.3.0. Also changed the MainWindow to use the WindowEx class instead of the Window class. Then I got this same behavior with this minimal app.

I posted this test app on my GitHub account:
https://github.com/FinnurHrafn/AppWinUIExTest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions