/// <summary> /// Deactivates the live preview /// </summary> public static void DeactivateLivePreview() { InteropAndHelpers.DwmpActivateLivePreview( false, IntPtr.Zero, IntPtr.Zero, InteropAndHelpers.LivePreviewTrigger.AltTab, IntPtr.Zero); }
/// <summary> /// Activates the live preview /// </summary> /// <param name="targetWindow">the window to show by making all other windows transparent</param> /// <param name="windowToSpare">the window which should not be transparent but is not the target window</param> public static void ActivateLivePreview(IntPtr targetWindow, IntPtr windowToSpare) { InteropAndHelpers.DwmpActivateLivePreview( true, targetWindow, windowToSpare, InteropAndHelpers.LivePreviewTrigger.Superbar, IntPtr.Zero); }