Represents the radii of a rectangle's corners.
Assembly: PresentationFramework (in PresentationFramework.dll)
Compares twostructures for equality.
Returns the hash code for this ValueType.GetHashCode().). (Overrides
Returns the string representation of the ValueType.ToString().). (Overrides
This class has four properties, TopLeft, TopRight, BottomLeft, and BottomRight, corresponding to the individual corners of the rectangle. Each is a Double structure that can be set independently of the others.
The radii cannot be negative.
Double value that specifies the radius of the top left corner.
Double value that specifies the top right corner.
Double value that specifies the bottom right corner.
Double value that specifies the bottom left corner.
If only a single Double value is specified, that measure is applied to ALL of the TopLeft, TopRight, BottomRight, and BottomLeft corners of the .
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.
The following example shows how to set the value of the CornerRadius property by using Extensible Application Markup Language (XAML) and code.
Dim myBorder1 As New Border() myBorder1.BorderBrush = Brushes.SlateBlue myBorder1.BorderThickness = New Thickness(5, 10, 15, 20) myBorder1.Background = Brushes.AliceBlue myBorder1.Padding = New Thickness(5) myBorder1.CornerRadius = New CornerRadius(15)
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.