Wednesday 9 December 2015

Create round edge button in wpf

Create round edge button in wpf.


<Style TargetType="{x:Type Button}">            
<Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Border CornerRadius="8" Background="{TemplateBinding Background}"
                                BorderThickness="1">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center">

                            </ContentPresenter>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>

            </Setter>
</Style>

No comments:

Post a Comment