WPF: Disabling and/or Hiding The Maximize, Minimize or Close Button of a Window

This solution provides an example of how you can disable or hide the minimize, maximize and close button of a WPF window using P/Invoke and the SetWindowLong and EnableMenuItem native Win32 methods.You should be able to build the sample code in Visual Studio by just open the solu

C# (115.5 KB)
 
 
 
 
 
5 Star
(2)
1,746 times
Add to favorites
11/30/2014
E-mail Twitter del.icio.us Digg Facebook