CornerRadiusHelper CornerRadiusHelper CornerRadiusHelper Class

Definition

Provides basic utility methods for processing CornerRadius values. C# and Microsoft Visual Basic code should use methods of CornerRadius instead.

public : sealed class CornerRadiusHelper : ICornerRadiusHelper
public sealed class CornerRadiusHelper : ICornerRadiusHelper
Public NotInheritable Class CornerRadiusHelper Implements ICornerRadiusHelper
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

CornerRadius is a Windows Runtime structure that represents a radius applied to one or all corners of a rectangular UI element. For example, Border.CornerRadius uses a CornerRadius value.

CornerRadiusHelper is one of several Helper classes that are intended to provide utility methods for Windows Runtime structure values. C# and Microsoft Visual Basic code can use members of CornerRadius instead, because utility members are available directly on the structure due to .NET Framework runtime support. C++ code can only access the data values on CornerRadius, for example the TopLeft field value. For C++ developers, approximately the same utility features that a Microsoft Visual Basic developer could use directly on CornerRadius are available in a static form on the CornerRadiusHelper class.

Methods

FromRadii(Double, Double, Double, Double) FromRadii(Double, Double, Double, Double) FromRadii(Double, Double, Double, Double)

Generates a CornerRadius value from element values. C# and Microsoft Visual Basic code should use CornerRadius(Double,Double,Double,Double) instead.

public : static CornerRadius FromRadii(double topLeft, double topRight, double bottomRight, double bottomLeft)
public static CornerRadius FromRadii(Double topLeft, Double topRight, Double bottomRight, Double bottomLeft)
Public Static Function FromRadii(topLeft As Double, topRight As Double, bottomRight As Double, bottomLeft As Double) As CornerRadius
Parameters
topLeft
double Double Double

The initial TopLeft value.

topRight
double Double Double

The initial TopRight value.

bottomRight
double Double Double

The initial BottomRight value.

bottomLeft
double Double Double

The initial BottomLeft value.

Returns

FromUniformRadius(Double) FromUniformRadius(Double) FromUniformRadius(Double)

Creates a new CornerRadius value that has a uniform radius value for each of its elements. C# and Microsoft Visual Basic code should use CornerRadius(Double) instead.

public : static CornerRadius FromUniformRadius(double uniformRadius)
public static CornerRadius FromUniformRadius(Double uniformRadius)
Public Static Function FromUniformRadius(uniformRadius As Double) As CornerRadius
Parameters
uniformRadius
double Double Double

The uniform radius value to set. See CornerRadius.

Returns

See Also