<Window x:Class="R11_SzablonKontrolkiStyl.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:R11_SzablonKontrolkiStyl"
        mc:Ignorable="d"
       Title="Szablon przycisku" Height="150" Width="350">
    <Window.Resources>
        <Style x:Key="stylPrzycisku" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <Ellipse Fill="Lavender" Width="100" Height="50" Stroke="Black"/>
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="FontSize" Value="16"/>
            <Setter Property="FontWeight" Value="Bold"/>
        </Style>
    </Window.Resources>
    <Grid>
        <Button Content="Zatwierdź" Style="{StaticResource stylPrzycisku}" Click="Button_Click"/>
    </Grid>

</Window>
