I have set my main window state to \"Maximized\" but the problem is my application will fill the whole screen even task bar. what am i doing wrong ? I\'m using windows 2008
You can set the MaxHeight property of that window to SystemParameters.MaximizedPrimaryScreenHeight using the constructor.
MaxHeight
SystemParameters.MaximizedPrimaryScreenHeight
public MainWindow() { InitializeComponent(); this.MaxHeight = SystemParameters.MaximizedPrimaryScreenHeight; }