iNKORE-NET/UI.WPF.Modern

NoResize

Closed this issue · 4 comments

While we use the 'UseModernWindowStyle' option, the 'ResizeMode="NoResize"' option does not work

  • OS: Windows 11 23H2
  • .Net 8

Same for me. I tried to work around it and only show the Arrow-Cursor if I hover over the border of the window, so it would at least be visually like you can't resize the window. Doesn't work either.

Hi guys, maybe I can have a look a few days later. I guess this is caused by the WindowChrome.
You guys can try a custom WindowChrome value and see if it works.

Thanks!

it works! Thanks :)

var chrome = WindowChrome.GetWindowChrome(this); chrome.ResizeBorderThickness = new Thickness(0); WindowChrome.SetWindowChrome(this, chrome);

Hi there, this is fixed in the commit: bbd69ae
If this issue still exists, feel free to reopen it.