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 玻璃帧的最大化窗口或窗口。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 NoneNone

适用于