ContentPresenter.CornerRadius Property


Gets or sets the radius for the corners of the content presenter's border.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.ContentPresenter.CornerRadius.

 property CornerRadius CornerRadius { CornerRadius get(); void set(CornerRadius value); };
CornerRadius CornerRadius();

void CornerRadius(CornerRadius value);
public CornerRadius CornerRadius { get; set; }
var cornerRadius = contentPresenter.cornerRadius;
contentPresenter.cornerRadius = cornerRadius;
Public Property CornerRadius As CornerRadius
<ContentPresenter CornerRadius="uniformRadius"/>
- or -
<ContentPresenter CornerRadius="topLeft,topRight,bottomRight,bottomLeft"/>

Property Value


The degree to which the corners are rounded, expressed as values of the CornerRadius structure.


Member components of a CornerRadius value cannot be negative.

Applies to