WindowChrome.CornerRadius WindowChrome.CornerRadius WindowChrome.CornerRadius WindowChrome.CornerRadius Property

定义

获取或设置一个值,该值表示圆形窗口边角的度数。Gets or sets a value that indicates the amount that the corners of a window are rounded.

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

属性值

一个描述倒圆的量的值。A value that describes the amount that corners are rounded.

注解

设置CornerRadius属性指定的窗口的边角处舍入。Set the CornerRadius property to specify the amount of rounding at the corners of a window. 此属性可以设置为任何非负的双精度值。This property can be set to any non-negative double value. 值可以是非一致性。The values can be non-uniform.

最大化的窗口或具有 Windows Aero 玻璃框的 windows,则此属性不会影响。This property does not affect maximized windows or windows that have a Windows Aero glass frame. 它未启用 Windows Aero (也称为桌面窗口管理器) 时才有意义或GlassFrameThickness属性设置为 0。It only has an effect when Windows Aero (also called Desktop Window Manager) is not enabled or the GlassFrameThickness property is set to 0. 在非工作区中的命中测试不采用CornerRadius考虑确定鼠标是否重设大小边界上时。Hit testing in the non-client area does not take the CornerRadius into account when determining whether the mouse is over a resize border. 如果 radius 相对于太大ResizeBorderThickness则有可能用户无法执行使用鼠标对角线的大小调整。If the radius is too large relative to the ResizeBorderThickness then it is possible that the user cannot perform a diagonal resize using the mouse.

依赖项属性信息Dependency Property Information

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

适用于