wpfui
wpfui copied to clipboard
Exeption thrown when ExtendsContentIntoTitleBar="True" WindowBackdropType="Mica" is added to UI:Window
Describe the bug
Managed Debugging Assistant 'PInvokeStackImbalance' : 'A call to PInvoke function 'Wpf.Ui!Wpf.Ui.Interop.User32::SetWindowLong' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature
To Reproduce
- Create a Wpf project in .net 4.8
- add WPFUI nuget package
- Change mainWindow to ui:UIwindow
- Change mainwindow code behind to inherit from INaviagtionWindow
- add ThemesDictionary and Controls Dictionary to Resource dictionary
- add ExtendsContentIntoTitleBar="True" to Mainwindow
- WindowBackdropType="Mica" to Mainwindow
- Dubug the application
Expected behavior
Unbalanced stack exception shouldn't be thrown
Screenshots
No response
OS version
Windows 11 and Windows 10
.NET version
4.8
WPF-UI NuGet version
2.0.3
Additional context
No response