microsoft / microsoft-ui-xaml

WinUI: a modern UI framework with a rich set of controls and styles to build dynamic and high-performing Windows applications.
MIT License
6.37k stars 683 forks source link

Title bar API causes apps to crash on Windows 10 #10199

Open wbokkers opened 3 hours ago

wbokkers commented 3 hours ago

Describe the bug

On Windows App SDK 1.5.8 (and possibly on 1.6 as well) users experience crashes in (child) windows using title bar customization.

Image

Steps to reproduce the bug

  1. I have this code in the constructor of a Window:
     if (AppWindowTitleBar.IsCustomizationSupported())
     {
             _appWindow.TitleBar.ExtendsContentIntoTitleBar = true;
             _appWindow.TitleBar.IconShowOptions = IconShowOptions.HideIconAndSystemMenu;
     }
  2. User opens (closes?) this Window
  3. The app crashes on Windows 10.0.10945.5131

Expected behavior

No crash

NuGet package version

WinUI 3 - Windows App SDK 1.5.8

Windows version

Windows 10.0.19045.5131

github-actions[bot] commented 3 hours ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.