Exemplo n.º 1
0
 private void TrySetPreviewUsingDwm()
 {
     ClearAnyDwmPreview();
     _thumbHandle = DesktopWindowManagerApi.ShowThumb(WindowHandle, ViewModel.SelectedMatch.Value as Win32.Window, new DesktopWindowManagerApi.Rect(500, 0, 800, 200));
 }
Exemplo n.º 2
0
 private void ClearAnyDwmPreview()
 {
     DesktopWindowManagerApi.HideThumb(_thumbHandle);
     _thumbHandle = IntPtr.Zero;
 }