0

How do you make a WPF C# application minimize like Windows 7, when the user presses the minimize button?

Edit

Createde a button that could do this:

WindowState = WindowState.Minimized;

But it minimize instantly and not shrinking to taskbar like when you minimize a folder in windows 7

Phu Minh Pham
  • 1,025
  • 7
  • 21
  • 38

1 Answers1

0

It will happen by default if you haven't played with the window properties too much in the designer or XAML. So if you haven't changed anything, you don't actually need to do anything to get this to work - assuming you are at least displaying the stuff in a window.

To resize a WPF window in code, please refer to this question:

Minimize a window in WPF?

Community
  • 1
  • 1
Adam Houldsworth
  • 63,413
  • 11
  • 150
  • 187