Provides functionality to use Aero Glass.

Namespace:  Ookii.Dialogs
Assembly:  Ookii.Dialogs (in Ookii.Dialogs.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static class Glass
Public NotInheritable Class Glass
public ref class Glass abstract sealed

Members

         
 All Members  Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
DrawCompositedText(IDeviceContext, String, Font, Rectangle, Padding, Color, Int32, TextFormatFlags)
Draws composited text onto the glass area of a form.
ExtendFrameIntoClientArea(IWin32Window, Padding)
Extends the glass window frame into the client area of the specified window.
IsDwmCompositionEnabled
Gets a value that indicates whether desktop composition is enabled.
MeasureCompositedText(IDeviceContext, String, Font, TextFormatFlags)
Provides the size, in pixels, of the specified text.
OSSupportsDwmComposition
Gets a value that indicates whether the operating system supports composition through the Desktop Window Manager.

Remarks

This class provides functionality to extend the Windows Vista Aero glass window frame into a window's client area, and to draw text on the glass area.

The ExtendedForm class provides more comprehensive support for client area glass than using ExtendFrameIntoClientArea(IWin32Window, Padding) by using its GlassMargin property. In addition to the basic client area glass support, ExtendedForm will also respond to changes in the Desktop Window Manager state and enable/disable client area glass as necessary. It also allows the window to be dragged using the client area glass areas using the AllowGlassDragging property.

Note: Use of glass requires Windows Vista or later with the Desktop Window Manager enabled.

Inheritance Hierarchy

System..::.Object
  Ookii.Dialogs..::.Glass

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also