Melursus
Melursus

Reputation: 10618

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

Upvotes: 7

Views: 12468

Answers (2)

LazyZebra
LazyZebra

Reputation: 1113

How about disabling the resize attribute?

ResizeMode="NoResize"

Upvotes: 15

Bolu
Bolu

Reputation: 8786

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

Upvotes: 7

Related Questions