UI.WPF.Modern icon indicating copy to clipboard operation
UI.WPF.Modern copied to clipboard

NoResize

Open Bober95 opened this issue 1 year ago • 3 comments

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

  • OS: Windows 11 23H2
  • .Net 8

Bober95 avatar May 13 '24 09:05 Bober95

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.

alexpauls avatar May 16 '24 09:05 alexpauls

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!

NotYoojun avatar May 16 '24 09:05 NotYoojun

it works! Thanks :)

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

Bober95 avatar May 16 '24 11:05 Bober95

Hi there, this is fixed in the commit: https://github.com/iNKORE-NET/UI.WPF.Modern/commit/bbd69aec17c3b23907ccff7013ff81b584876f43 If this issue still exists, feel free to reopen it.

NotYoojun avatar Jul 01 '24 13:07 NotYoojun