public static bool ExtendFrame(this Window window, bool extended, Color background) { MARGINS margins = extended ? MARGINS.All : MARGINS.None; return(window.ExtendFrame(margins, background)); }
public static bool ExtendFrame(this Window window, Thickness thickness, Color background) { MARGINS margins = new MARGINS(thickness); return(window.ExtendFrame(margins, background)); }
private static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, MARGINS pMarInset);