C# Class SevenSoftware.Windows.AeroGlass

Contains methods to allow use of Aero Glass.
Show file Open project: robertbaker/SevenUpdate

Public Methods

Method Description
EnableBlur ( IntPtr windowHandle, IntPtr region ) : void

Enables Blur on Aero Glass.

EnableBlur ( Window window, IntPtr region ) : void

Enables Blur on Aero Glass for a WPF window.

EnableGlass ( Window window, Margins margins ) : void

Enables Aero Glass on a WPF window, no exception thrown if OS does not support DWM.

ExcludeElementFromAeroGlass ( FrameworkElement element, Window window ) : void

Excludes a UI element from the Aero Glass frame.

cMany non-WPF rendered controls (i.e., the ExplorerBrowser control) will not render properly on top of an Aero Glass frame.

ResetAeroGlass ( Margins margins, IntPtr windowHandle ) : void

Resets the Aero Glass exclusion area.

ResetAeroGlass ( Margins margins, Window window ) : void

Resets the Aero Glass exclusion area.

Private Methods

Method Description
WndProc ( IntPtr handle, int msg, IntPtr parameter, IntPtr parameter2, bool &handled ) : IntPtr

An application-defined function that processes messages sent to a window.

Method Details

EnableBlur() public static method

Enables Blur on Aero Glass.
public static EnableBlur ( IntPtr windowHandle, IntPtr region ) : void
windowHandle System.IntPtr The windows handle to add the blur to.
region System.IntPtr The area to add the blur to.
return void

EnableBlur() public static method

Enables Blur on Aero Glass for a WPF window.
public static EnableBlur ( Window window, IntPtr region ) : void
window System.Windows.Window The window object to add blur to.
region System.IntPtr The area to add the blur to.
return void

EnableGlass() public static method

Enables Aero Glass on a WPF window, no exception thrown if OS does not support DWM.
public static EnableGlass ( Window window, Margins margins ) : void
window System.Windows.Window The window to enable glass.
margins Margins The region to add glass.
return void

ExcludeElementFromAeroGlass() public static method

Excludes a UI element from the Aero Glass frame.
cMany non-WPF rendered controls (i.e., the ExplorerBrowser control) will not render properly on top of an Aero Glass frame.
public static ExcludeElementFromAeroGlass ( FrameworkElement element, Window window ) : void
element System.Windows.FrameworkElement The element to exclude.
window System.Windows.Window The window the element resides in.
return void

ResetAeroGlass() public static method

Resets the Aero Glass exclusion area.
public static ResetAeroGlass ( Margins margins, IntPtr windowHandle ) : void
margins Margins The margins.
windowHandle System.IntPtr The window handle.
return void

ResetAeroGlass() public static method

Resets the Aero Glass exclusion area.
public static ResetAeroGlass ( Margins margins, Window window ) : void
margins Margins The margins.
window System.Windows.Window The window.
return void