I have a windowless wpf application, whenever I set the window state as maximized it maximizes it on the primary display.
What I would like to do is have it maximize on
Because of the taskbar you should use user working area's size:
this.Width=SystemParameters.WorkArea.Width; this.Height=SystemParameters.WorkArea.Height;
You can use this in view's constructor