예제 #1
0
        /// <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);
            }
        }
예제 #2
0
 /// <summary>
 /// Prepares the glass for rendering.
 /// </summary>
 /// <param name="margs">The margins.</param>
 public void PrepareGlass(Margins margs)
 {
     PrepareGlass(CreateGraphics(), margs);
 }
예제 #3
0
 /// <summary>
 /// Updates the glass.
 /// </summary>
 /// <param name="margs">The margins.</param>
 public void UpdateGlass(Margins margs)
 {
     UpdateGlass(Handle, margs);
 }
예제 #4
0
        /// <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);
            }
        }
예제 #5
0
 private static extern void DwmExtendFrameIntoClientArea( IntPtr hWnd, ref Margins margin );