Ondrej Janacek
Ondrej Janacek

Reputation: 12616

Minimize window with NoResize mode on

I have a WPF application, where Window property ResizeMode is set on NoResize. Hence maximize and minimize button is hidden.

Is there a way to add minimize button? Because I don't want to allow user just resize window in order to not deform controls on form. But minimize window is useful function.

Upvotes: 15

Views: 7407

Answers (1)

Maurizio Reginelli
Maurizio Reginelli

Reputation: 3212

Set ResizeMode="CanMinimize". This avoids window resizing and enables minimize button.

Upvotes: 19

Related Questions