/// <summary> /// Switch to virtual desktop and move the window. /// </summary> public static void SwitchAndMove(this VirtualDesktop.VirtualDesktop virtualDesktop, Window window) { window.MoveToDesktop(virtualDesktop); virtualDesktop.Switch(); }
/// <summary> /// Move this window to specified virtual desktop. /// </summary> public static void MoveToDesktop(this Window window, VirtualDesktop.VirtualDesktop virtualDesktop) { VirtualDesktopHelper.MoveToDesktop(window.GetHandle(), virtualDesktop); }