<Window x:Class="Templates.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Vorlagen" Height="200" Width="450">
    
    <Window.Resources>
        <ControlTemplate x:Key="knobButtonTemplate">
            <Grid>
               <Ellipse Stroke="Blue" Fill="Aquamarine" StrokeThickness="3" />
               <TextBlock Text="{TemplateBinding Property=Button.Content}"
                       HorizontalAlignment="Center" VerticalAlignment="Center"
                       Padding="30,30,30,30" FontSize="12" Foreground="Blue"/>
            </Grid>
        </ControlTemplate>
    </Window.Resources>
    
    <Grid>
        <Button Template="{StaticResource knobButtonTemplate}"  Name="button1" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,20" Click="button1_Click">Klick mich</Button>
    </Grid>
</Window>
