<Window x:Class="WpfApp1.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:WpfApp1"
        mc:Ignorable="d"
        Title="Lotto" Height="500" Width="600">
    <Window.Background>
        <ImageBrush ImageSource="/lotto.jpg" Stretch="Fill"/>
    </Window.Background>

    <Window.Resources>
        <Style x:Key="NumberButtonStyle" TargetType="Button">
            <Setter Property="Background" Value="#FFEEEEEE"/>
            <Setter Property="Margin" Value="3"/>
            <Setter Property="FontSize" Value="16"/>
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Width" Value="40"/>
            <Setter Property="Height" Value="40"/>
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="Cursor" Value="Hand"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Border Background="{TemplateBinding Background}" CornerRadius="8">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Background" Value="#FFB3E5FC"/>
                </Trigger>
            </Style.Triggers>
        </Style>
        <Style x:Key="ResultLabelStyle" TargetType="Label">
            <Setter Property="Background" Value="#FFB3E5FC"/>
            <Setter Property="FontSize" Value="18"/>
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="Width" Value="50"/>
            <Setter Property="Height" Value="50"/>
            <Setter Property="Margin" Value="5"/>
            <Setter Property="BorderBrush" Value="#FF0288D1"/>
            <Setter Property="BorderThickness" Value="2"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Label">
                        <Border Background="{TemplateBinding Background}" 
                                BorderBrush="{TemplateBinding BorderBrush}" 
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="10">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <Grid>
        
        <Grid HorizontalAlignment="Left" Height="320" Margin="30,30,0,0" VerticalAlignment="Top" Width="320">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="0" Grid.Row="0">1</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="0" Grid.Row="1">8</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="0" Grid.Row="2">15</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="0" Grid.Row="3">22</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="0" Grid.Row="4">29</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="0" Grid.Row="5" Content="36"/>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="0" Grid.Row="6" Content="43"/>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="1" Grid.Row="0">2</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="1" Grid.Row="1">9</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="1" Grid.Row="2">16</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="1" Grid.Row="3">23</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="1" Grid.Row="4">30</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="1" Grid.Row="5" Content="37"/>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="1" Grid.Row="6" Content="44"/>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="2" Grid.Row="0">3</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="2" Grid.Row="1">10</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="2" Grid.Row="2">17</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="2" Grid.Row="3">24</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="2" Grid.Row="4">31</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="2" Grid.Row="5" Content="38"/>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="2" Grid.Row="6" Content="45"/>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="3" Grid.Row="0">4</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="3" Grid.Row="1">11</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="3" Grid.Row="2">18</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="3" Grid.Row="3">25</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="3" Grid.Row="4">32</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="3" Grid.Row="5" Content="39"/>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="3" Grid.Row="6" Content="46"/>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="4" Grid.Row="0">5</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="4" Grid.Row="1">12</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="4" Grid.Row="2">19</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="4" Grid.Row="3">26</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="4" Grid.Row="4">33</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="4" Grid.Row="5" Content="40"/>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="4" Grid.Row="6" Content="47"/>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="5" Grid.Row="0">6</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="5" Grid.Row="1">13</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="5" Grid.Row="2">20</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="5" Grid.Row="3">27</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="5" Grid.Row="4">34</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="5" Grid.Row="5" Content="41"/>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="5" Grid.Row="6" Content="48"/>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="6" Grid.Row="0">7</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="6" Grid.Row="1">14</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="6" Grid.Row="2">21</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="6" Grid.Row="3">28</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="6" Grid.Row="4">35</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="6" Grid.Row="5">42</Button>
            <Button Style="{StaticResource NumberButtonStyle}" Click="NumberButton_Click" Grid.Column="6" Grid.Row="6">49</Button>
        </Grid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,370,0,0" VerticalAlignment="Top">
            <Label x:Name="Label0" Style="{StaticResource ResultLabelStyle}" Content="*" />
            <Label x:Name="Label1" Style="{StaticResource ResultLabelStyle}" Content="*" />
            <Label x:Name="Label2" Style="{StaticResource ResultLabelStyle}" Content="*" />
            <Label x:Name="Label3" Style="{StaticResource ResultLabelStyle}" Content="*" />
            <Label x:Name="Label4" Style="{StaticResource ResultLabelStyle}" Content="*" />
            <Label x:Name="Label5" Style="{StaticResource ResultLabelStyle}" Content="*" />
        </StackPanel>
        <Button x:Name="ZiehungButton"
                Content="Spielen"
                Click="Button_Click"
                Width="120"
                Height="50"
                FontSize="18"
                FontWeight="Bold"
                Background="#FF0288D1"
                Foreground="White"
                BorderThickness="0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Margin="400,60,0,0"/>
        <Label x:Name="Kontostand"
               Content=""
               FontSize="18"
               FontWeight="Bold"
               Background="#FFF8BBD0"
               Foreground="#FF880E4F"
               HorizontalAlignment="Left"
               Height="70"
               Margin="418,370,0,0"
               VerticalAlignment="Top"
               Width="172"
               BorderBrush="#FF880E4F"
               BorderThickness="2"
               Padding="18"/>
        <Label Content="Hinweis:&#xA;6 Treffer: 1000.000 $&#xA;5 Treffer: 1000$&#xA;4 Treffer: 100$&#xA;3 Treffer:100$&#xA;2Treffer: 10$&#xA;1Treffer: 1$&#xA;kein Treffer: 0$" Padding="15" FontSize="18" FontWeight="Bold"   Background="#FFF8BBD0"
        Foreground="#FF880E4F" HorizontalAlignment="Left" Margin="358,127,0,0" VerticalAlignment="Top" Height="223" Width="204"/>

        

    </Grid>
</Window>
