WindowChrome.GlassFrameThickness WindowChrome.GlassFrameThickness WindowChrome.GlassFrameThickness WindowChrome.GlassFrameThickness Property

定义

获取或设置一个值,该值表示窗口周围透明边框的宽度。Gets or sets a value that indicates the width of the glass border around a window.

public:
 property System::Windows::Thickness GlassFrameThickness { System::Windows::Thickness get(); void set(System::Windows::Thickness value); };
public System.Windows.Thickness GlassFrameThickness { get; set; }
member this.GlassFrameThickness : System.Windows.Thickness with get, set
Public Property GlassFrameThickness As Thickness

属性值

窗口周围玻璃边框的宽度。The width of the glass border around a window.

注解

设置GlassFrameThickness属性来指定 Windows Aero 玻璃框扩展到窗口的客户端区域的金额。Set the GlassFrameThickness property to specify the amount that the Windows Aero glass frame extends into the client area of a window. 默认情况下,玻璃框将使用系统值来模拟标准窗口的外观。By default, the glass frame will use system values to emulate the look of a standard window. 如果启用了 Windows Aero,然后在标准标题按钮 (最大化、 最小化,关闭) 是已启用和交互式的。If Windows Aero is enabled, then the standard caption buttons (Maximize, Minimize, Close) are enabled and interactive. 若要使不具有玻璃框的自定义窗口,请将此粗细设置为统一值为 0。To make a custom window that does not have a glass frame, set this thickness to a uniform value of 0. 这将禁用标准标题按钮。This will disable the standard caption buttons.

若要扩展玻璃框,以覆盖整个窗口,设置GlassFrameThickness属性设置为负值在任意一侧。To extend the glass frame to cover the entire window, set the GlassFrameThickness property to a negative value on any side. 如果GlassFrameThickness属性设置为负值的任意一侧,其强制转换后的值将等于GlassFrameCompleteThicknessIf the GlassFrameThickness property is set to a negative value for any side, its coerced value will be equal to GlassFrameCompleteThickness. GlassFrameCompleteThickness作为实用程序,使您能够将玻璃框架的粗细设置为将玻璃效果扩展的整个范围内的已命名属性提供属性。The GlassFrameCompleteThickness property is provided as a utility to enable you to set the thickness of the glass frame to a named property that extends the glass over the entire window.

Windows Aero 玻璃效果不支持在所有操作系统上,可禁用受支持操作系统上。Windows Aero glass effects are not supported on all operating systems, and can be disabled on supported operating systems. 如果 Windows Aero 不可用,玻璃框将不显示而不考虑GlassFrameThickness属性值。If Windows Aero is not available, the glass frame will not be displayed regardless of the GlassFrameThickness property value. 应检查IsGlassEnabled属性以验证 Windows Aero 玻璃效果是否可用。You should check the IsGlassEnabled property to verify that Windows Aero glass effects are available. 如果玻璃效果不可用,则应提供不使用玻璃框的备用的窗口样式。If glass effects are not available, you should provide an alternate window style that does not use the glass frame.

依赖项属性信息Dependency Property Information

标识符字段Identifier field GlassFrameThicknessProperty
元数据属性设置为 trueMetadata properties set to true None

适用于