public static WINDOWPLACEMENT GetPlacement(this Window window) { return(WindowPlacement.GetPlacement(new WindowInteropHelper(window).Handle)); }
public static void SetPlacement(this Window window, WINDOWPLACEMENT placement) { WindowPlacement.SetPlacement(new WindowInteropHelper(window).Handle, placement); }