■ Application 클래스를 사용해 듀얼 모니터에서 전체 화면 모드를 유지하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
using System.Windows; using System.Windows.Interop; #region 전체 화면 고정하기 - PinFullScreen() /// <summary> /// 전체 화면 고정하기 /// </summary> public void PinFullScreen() { Application.Current.Host.Content.FullScreenOptions = FullScreenOptions.StaysFullScreenWhenUnfocused; Application.Current.Host.Content.IsFullScreen = true; } #endregion |