May 18, 2012

WPF Window Maximize problem


Problem
- The WPF application Maximize Problem and not work correctly
- The WindowState="Maximized" make window bigger than screen size and ...
- After loaded the window, it comes bigger than whole screen size and ...
- I created a WPF window and I'm running into maximizing problems.
- Problem in Maximize state
- Fully Maximize WPF Window using windowstate is not working

Solution
Just remove below line from XAML code.
SizeToContent="WidthAndHeight"
Or add below line after InitializeComponent(); in constructor
SizeToContent=System.Windows.SizeToContent.Manual;

1 comment:

b botond said...

worked perfect
thanks