wpfui icon indicating copy to clipboard operation
wpfui copied to clipboard

Exeption thrown when ExtendsContentIntoTitleBar="True" WindowBackdropType="Mica" is added to UI:Window

Open Randle-Lanre opened this issue 2 years ago • 2 comments

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

  1. Create a Wpf project in .net 4.8
  2. add WPFUI nuget package
  3. Change mainWindow to ui:UIwindow
  4. Change mainwindow code behind to inherit from INaviagtionWindow
  5. add ThemesDictionary and Controls Dictionary to Resource dictionary
  6. add ExtendsContentIntoTitleBar="True" to Mainwindow
  7. WindowBackdropType="Mica" to Mainwindow
  8. 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

Randle-Lanre avatar Feb 11 '23 23:02 Randle-Lanre