WPF Application Maximize Problem
Posted
by user279244
on Stack Overflow
See other posts from Stack Overflow
or by user279244
Published on 2010-04-29T14:37:31Z
Indexed on
2010/04/29
14:47 UTC
Read the original article
Hit count: 294
How to set the Height and width of a WPF application on maximise? Problem I face is because of variable height of the windows taskbar in different computers
Presently, I am doing it like this. Please suggest any better technique
if (this.WindowState == WindowState.Maximized)
{
this.Height = primaryScreenHeight - 10 - System.Windows.Forms.SystemInformation.SizingBorderWidth;
this.Width = primaryScreenWidth + 2 * System.Windows.Forms.SystemInformation.FrameBorderSize.Width;
}
© Stack Overflow or respective owner