File tree Expand file tree Collapse file tree
src/Shared/HandyControl_Shared Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using System ;
1+ using System ;
22using System . Runtime . InteropServices ;
33using System . Windows ;
44using System . Windows . Input ;
@@ -261,6 +261,8 @@ protected override void OnStateChanged(EventArgs e)
261261 NonClientAreaHeight = _tempNonClientAreaHeight ;
262262 }
263263
264+ ApplyWindowChrome ( WindowState ) ;
265+
264266 if ( MicaHelper . IsMica )
265267 {
266268 FixCut ( ) ;
Original file line number Diff line number Diff line change 1- using System ;
1+ using System ;
22using System . Windows ;
33using System . Windows . Controls ;
44using System . Windows . Data ;
@@ -158,7 +158,7 @@ private void ApplyWindowChrome(WindowState windowsState)
158158 GlassFrameThickness = new Thickness ( - 1 ) ,
159159 ResizeBorderThickness = new Thickness ( 6 )
160160 } ;
161- if ( windowsState == WindowState . Maximized )
161+ if ( windowsState == WindowState . Maximized || ResizeMode == ResizeMode . NoResize )
162162 {
163163 chrome . ResizeBorderThickness = new Thickness ( 0 ) ;
164164 }
You can’t perform that action at this time.
0 commit comments