Skip to content

Maximize bug #1

@CodingTarik

Description

@CodingTarik

If I want to maximize the application on a second monitor. It maximizes but switches to my primary monitor. Here is the method I used to maximize:

        /// Maximizes Window
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void WindowMaximize_Click(object sender, MouseButtonEventArgs e)
        { 
            this.Width = System.Windows.SystemParameters.WorkArea.Width;
            this.Height = System.Windows.SystemParameters.WorkArea.Height;
            this.Top = System.Windows.SystemParameters.WorkArea.Top;
            this.Left = System.Windows.SystemParameters.WorkArea.Left;
            
        }

If I just do:
this.WindowState = WindowState.Maximize;

It will cover the taskbar too.

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions