Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF - Hide minimize button of a window

In WPF, how can I hide the minimize button (only the minimize, not also the maximize...) of a window.

The code in this forum almost work for me. The behavior of that code is that it's disabled the minimize button. But, how hide it?

http://forums.silverlight.net/forums/p/222067/532926.aspx

like image 904
Melursus Avatar asked Jun 29 '11 15:06

Melursus


Video Answer


2 Answers

How about disabling the resize attribute?

ResizeMode="NoResize"
like image 178
LazyZebra Avatar answered Oct 02 '22 05:10

LazyZebra


I think you would have to hide the default window title and draw your own titlebar.

e.g.: C# WPF Custom Title Bar Tutorial and Moving a WPF Window with Custom Chrome

like image 32
Bolu Avatar answered Oct 02 '22 05:10

Bolu