I'm now writing a program showing different windows two screens.And I need to maximize the both two.Here problem comes:
Window2 win2=new Windows2();
win2.Top=0;
win2.Left=Screen.AllScreens[1].WorkingArea.Left;
//win2.WindowState=WindowState.Maximized; //the second one show on the first screen
win2.show();
//win2.WindowState=WindowState.Maximized; //the second screen will show a block window which is not full-screen.Then show the Maximization process as a blink.
As I write in the code,if I maximize the window before show(),it will show on the first screen(set the maximized state in XAML is the same).But maximizing it after showing it will show the Maximization process as a blink.IS there any way can deal with the problem?