lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.72k stars 756 forks source link

Titlebar, build 22000 #1155

Open crutkas opened 4 months ago

crutkas commented 4 months ago

Describe the bug

On Win11 21h2 (build 22000), it looks like the code from https://github.com/lepoco/wpfui/pull/1122/files#diff-196b404f4db09632665ef546da6c8e57302b2f3e3d082eb4b5c295ae3482d94a doesn't quite fix the issue. When we released to the wild in 0.82, we started seeing win11 build 22000 failures.

I can reproduce it on a VM.

https://github.com/microsoft/PowerToys/pull/33687 has a bit more of a targeted hack to resolve the issue.

To Reproduce

Spin up a 21h2 VM and you'll see it fail if you pass in 0xFFFFFFFE

Expected behavior

No crash

Screenshots

No response

OS version

win11 build 22000 (21h2)

.NET version

.net 8

WPF-UI NuGet version

did not directly use a WPFUI nuget

Additional context

No response