/// <summary> /// Prepares the glass for rendering. /// </summary> /// <param name="graphics">The graphics canvas.</param> /// <param name="margs">The margins.</param> public void PrepareGlass(Graphics graphics, Margins margs) { if (DesignMode) return; if (!margs.IsEmpty && AeroAPI.CanUseAero) { AeroAPI.FillBlackRegion(graphics, margs); } }
/// <summary> /// Prepares the glass for rendering. /// </summary> /// <param name="margs">The margins.</param> public void PrepareGlass(Margins margs) { PrepareGlass(CreateGraphics(), margs); }
/// <summary> /// Updates the glass. /// </summary> /// <param name="margs">The margins.</param> public void UpdateGlass(Margins margs) { UpdateGlass(Handle, margs); }
/// <summary> /// Updates the glass. /// </summary> /// <param name="drawingPointer">The drawing handle.</param> /// <param name="margs">The margins.</param> public void UpdateGlass(IntPtr drawingPointer, Margins margs) { if (DesignMode) return; if (!margs.IsEmpty && AeroAPI.CanUseAero) { AeroAPI.ExtendGlass(drawingPointer, margs); } }
private static extern void DwmExtendFrameIntoClientArea( IntPtr hWnd, ref Margins margin );