ControlsHelper.

GetCornerRadius(UIElement) Method

Summary

The CornerRadius property allows users to control the roundness of the button corners independently by setting a radius value for each corner. Radius values that are too large are scaled so that they smoothly blend from corner to corner. (Can be used e.g. at MetroButton style) Description taken from original Microsoft description :-D
Namespace
MahApps.Metro.Controls
Containing Type
ControlsHelper

Syntax

[Category(AppName.MahApps)]
public static CornerRadius GetCornerRadius(UIElement element)

Attributes

Type Description
Category

Parameters

Name Type Description
element UIElement

Return Value

Type Description
CornerRadius