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.
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
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
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