CornerRadiusHelper Class

Definition

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

public ref class CornerRadiusHelper sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CornerRadiusHelper final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CornerRadiusHelper
Public NotInheritable Class CornerRadiusHelper
Inheritance
Object Platform::Object IInspectable CornerRadiusHelper
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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)

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

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 the CornerRadius(Double) constructor instead.

Applies to

See also