예제 #1
0
파일: Methods.cs 프로젝트: iWay7/Calendar
 public static void ExtendAeroToFullWindow(Window wnd)
 {
     IntPtr hwnd = new WindowInteropHelper(wnd).Handle;
     wnd.Background = Brushes.Transparent;
     HwndSource.FromHwnd(hwnd).CompositionTarget.BackgroundColor = Colors.Transparent;
     DWMMargins m = new DWMMargins();
     m.top = -1;
     m.bottom = -1;
     m.left = -1;
     m.right = -1;
     DwmExtendFrameIntoClientArea(hwnd, ref m);
 }
예제 #2
0
파일: Methods.cs 프로젝트: iWay7/Calendar
 private static extern void DwmExtendFrameIntoClientArea(IntPtr hwnd, ref DWMMargins margins);