Skip to content

Attributes

NameUse
CornerRadiusSet border fillet values
CircularWhether it is rendered as a circle True is Yes, False is No

Use Cases

CornerRadius Set the border fillet value

xml
<StackPanel Width="200" VerticalAlignment="Center">
    <Button Content="Button" hc:BorderElement.CornerRadius="15" HorizontalAlignment="Stretch"/>
    <TextBox Text="TextBox" hc:BorderElement.CornerRadius="15" Margin="0,10,0,0"/>
</StackPanel>

BorderElement.CornerRadius

Circular

Implement a circular border with the attached property of BorderElement.Circular

xml
<Border Style="{StaticResource BorderCircular}" Background="OrangeRed" Width="100" Height="100"/>

BorderElement.Circular

Released under the MIT License.