Represents the radii of a rectangle's corners.
XMLNS for XAML:
JScript supports the use of structures, but not the declaration of new ones.
< object property = " TopLeft,TopRight,BottomRight,BottomLeft " />
- or -
< object property = " AllCorners " />
XAML Values TopLeft value that specifies the radius of the top left corner. Double TopRight value that specifies the top right corner. Double BottomRight value that specifies the bottom right corner. Double BottomLeft value that specifies the bottom left corner. Double AllCorners
If only a single
value is specified, that measure is applied to ALL of the Double TopLeft, TopRight, BottomRight, and BottomLeft corners of the . CornerRadius
Values need not include the decimal point explicitly when specified as a string. The string "1" provided in XAML evaluates to a value of 1.0 when referenced in code.
This class has four properties,
, TopLeft , TopRight , and BottomLeft , corresponding to the individual corners of the rectangle. Each is a BottomRight structure that can be set independently of the others. Double
The radii cannot be negative.
The following example shows how to set the value of the
property by using Extensible Application Markup Language (XAML) and code. CornerRadius
No code example is currently available or this language may not be supported.
< Border BorderBrush = " SlateBlue " BorderThickness = " 5,10,15,20 " Background = " AliceBlue " Padding = " 5 " CornerRadius = " 15 " >
in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Supported in: 3.5, 3.0
Did you find this helpful?
( 1500 characters remaining)
Thank you for your feedback