Beispiel #1
0
 /// <summary>
 /// Deactivates the live preview
 /// </summary>
 public static void DeactivateLivePreview()
 {
     InteropAndHelpers.DwmpActivateLivePreview(
         false,
         IntPtr.Zero,
         IntPtr.Zero,
         InteropAndHelpers.LivePreviewTrigger.AltTab,
         IntPtr.Zero);
 }
Beispiel #2
0
 /// <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);
 }