示例#1
0
        public static bool ExtendFrame(this Window window, bool extended, Color background)
        {
            MARGINS margins = extended ? MARGINS.All : MARGINS.None;

            return(window.ExtendFrame(margins, background));
        }
示例#2
0
        public static bool ExtendFrame(this Window window, Thickness thickness, Color background)
        {
            MARGINS margins = new MARGINS(thickness);

            return(window.ExtendFrame(margins, background));
        }
示例#3
0
 private static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, MARGINS pMarInset);