전체화면 창 띄우기

public MainWindow()
{
    InitializeComponent(); 

 WindowState = System.Windows.WindowState.Maximized;

}

해상도 구하기 /듀얼 모니터 구분

fullScreenWindow.WindowStartupLocation = WindowStartupLocation.Manual;            
Debug.Assert(System.Windows.Forms.SystemInformation.MonitorCount > 1);                                
System.Drawing.Rectangle workingArea = System.Windows.Forms.Screen.AllScreens[1].WorkingArea; //듀얼모니터구분               
fullScreenWindow.Left = workingArea.Left; 
fullScreenWindow.Top = workingArea.Top;                
fullScreenWindow.Width = workingArea.Width;                
fullScreenWindow.Height = workingArea.Height;                
fullScreenWindow.WindowState = WindowState.Maximized;//전체화면            
fullScreenWindow.WindowStyle = WindowStyle.None; //테두리 없애기               
fullScreenWindow.Topmost = true;                 
fullScreenWindow.Show();

+ Recent posts