WPF WindowChrome: Edges of maximized Window are out of the screen

后端 未结 3 1170
猫巷女王i
猫巷女王i 2020-12-31 04:52

I use WindowChrome to customize a Window. When I maximize the Window, then the edges are out of the screen. I use the following code to fix this:



        
3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-31 05:25

    Example of how to increase border thickness when a window is maximised. Otherwise, due to oddities of WindowChrome, part of the border will disappear.

    This example also strips out the standard window header, so you have to add your own minimize/maximize/close buttons.

    
        
        
            
            
                    
             
            
                
            
            
               
            
         
     
    

提交回复
热议问题