Click or drag to resize

ExtendedFormGlassMargin Property

Gets or sets the glass margins of the form.

Namespace:  Ookii.Dialogs
Assembly:  Ookii.Dialogs (in Ookii.Dialogs.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public Padding GlassMargin { get; set; }

Property Value

Type: Padding
A Padding that indicates the glass margins of the form. The default value is Empty.
Remarks
Note Note
Client-area glass requires Windows Vista or later with the Desktop Window Manager enabled. If the Desktop Window Manager is not enabled, or an older version of Windows is used, this property is ignored.

Client-area glass extends the glass frame used by the Windows Vista Aero user interface into the client area of your window.

Use negative margins to create the "sheet of glass" effect where the client area is rendered as a completely glass surface.

Text rendered with the TextRenderer will not display correctly on the glass area (this includes text drawn by most controls). To draw text on the glass area, use DrawCompositedText(IDeviceContext, String, Font, Rectangle, Padding, Color, Int32, TextFormatFlags).

If the form is scaled, which can happen for instance if UseSystemFont is , the glass margin will also be scaled.

At design time, the glass area will be indicated by a pattern drawn onto the form. This pattern will not be visible at runtime regardless of whether the glass is enabled or not.

See Also