iNKORE-NET / UI.WPF.Modern

Modern (Fluent 2) styles and controls for your WPF applications
GNU Lesser General Public License v2.1
447 stars 39 forks source link

NoResize #59

Closed Bober95 closed 3 months ago

Bober95 commented 4 months ago

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

alexpauls commented 4 months ago

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.

NotYoojun commented 4 months ago

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!

Bober95 commented 4 months ago

it works! Thanks :)

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

NotYoojun commented 3 months ago

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.