-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.ContentPresenter.CornerRadius |
winrt property |
Gets or sets the radius for the corners of the content presenter's border.
<ContentPresenter CornerRadius="uniformRadius"/>
- or -
<ContentPresenter CornerRadius="topLeft,topRight,bottomRight,bottomLeft"/>
- uniformRadius
- uniformRadiusA value that specifies a uniform radius size in pixels. The uniformRadius value is applied to all four CornerRadius values.
- topLeft
- topLeftSets the initial TopLeft value.
- topRight
- topRightSets the initial TopRight value.
- bottomRight
- bottomRightSets the initial BottomRight value.
- bottomLeft
- bottomLeftSets the initial BottomLeft value.If you specify an attribute string with two or three values, only the first value is respected and is treated as the uniformRadius (the other values are ignored). You must specify all four values to use a different behavior than uniformRadius. In the XAML syntaxes shown, you can use a space rather than a comma as the delimiter between values.
Member components of a CornerRadius value cannot be negative.