예제 #1
0
파일: glass.cs 프로젝트: xarinatan/o3o
 public static bool SetAeroGlass(this Window Window, AeroMargin Margin)
 {
     if (!DwmIsCompositionEnabled()) return false;
     IntPtr hwnd = new WindowInteropHelper(Window).Handle;
     Window.Background = Brushes.Transparent;
     HwndSource.FromHwnd(hwnd).CompositionTarget.BackgroundColor = Colors.Transparent;
     DwmExtendFrameIntoClientArea(hwnd, ref Margin);
     return true;
 }
예제 #2
0
파일: glass.cs 프로젝트: xarinatan/o3o
 static extern void DwmExtendFrameIntoClientArea(IntPtr hwnd, ref AeroMargin margins);