C# Class SevenSoftware.Windows.AeroGlass

Contains methods to allow use of Aero Glass.
Afficher le fichier Open project: robertbaker/SevenUpdate

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat void

EnableBlur() public static méthode

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.
Résultat void

EnableGlass() public static méthode

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.
Résultat void

ExcludeElementFromAeroGlass() public static méthode

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.
Résultat void

ResetAeroGlass() public static méthode

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

ResetAeroGlass() public static méthode

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