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