<Window x:Class="WpfHappyNewYear.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:WpfHappyNewYear"
        mc:Ignorable="d"
        Title="MainWindow" Height="300" Width="600"  MouseDown="Window_MouseDown" MouseMove="Window_MouseMove" MouseUp="Window_MouseUp" AllowsTransparency="True" WindowStyle="None" Background="#FF04047F">

    <!--//====================================================
        // Описание работы классов и методов исходника на:
        // https://www.interestprograms.ru
        // Исходные коды программ и игр
        //====================================================-->
    
    <Grid Name="mainGrid">
        <Image Source="/frame0.png" Stretch="Fill"/>
        <GroupBox x:Name="Admin" Header="Управление" VerticalAlignment="Bottom" Height="150" Margin="2,0,0,2" Foreground="#FFF9F7F7" Padding="0,2,2,2">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="289*"/>
                    <ColumnDefinition Width="115*"/>
                    <ColumnDefinition Width="174*"/>
                </Grid.ColumnDefinitions>
                <Button Content="Старт" HorizontalAlignment="Right" VerticalAlignment="Top" Click="Button_Click" Height="33" Width="102"/>
                <Label HorizontalAlignment="Left" VerticalAlignment="Top" Content="Количество повторов" Margin="2,2,0,0" Foreground="#FFFBF9F9"/>
                <TextBox  x:Name="repeatNumber" HorizontalAlignment="Left" VerticalAlignment="Top" Width="80" Margin="8,28,0,0" MaxLines="1" MaxLength="3" Text="TextBox" TextChanged="textbox_TextChanged" LostFocus="textbox_LostFocus"/>
                <Label Content="Промежутки повторов в сек" HorizontalAlignment="Left" Margin="2,48,0,0" VerticalAlignment="Top" Foreground="#FFFBF9F9"/>
                <TextBox x:Name="tbRepeatPeriod" HorizontalAlignment="Left" Margin="8,74,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="80" MaxLength="5" MaxLines="1" TextChanged="textbox_TextChanged" LostFocus="textbox_LostFocus"/>

                <TextBlock HorizontalAlignment="Left" Margin="8,0,0,0"  VerticalAlignment="Bottom">
     
                        <Hyperlink NavigateUri="https://www.interestprograms.ru" RequestNavigate="Hyperlink_RequestNavigate" Cursor="Hand" >
                    Программы, игры и их исходные коды
                    <Hyperlink.Style>
            <Style TargetType="Hyperlink"
                   BasedOn="{StaticResource {x:Type Hyperlink}}">
                <Setter Property="Foreground" Value="#FF61BBF5"/>
            </Style>
        </Hyperlink.Style>
     </Hyperlink>
                </TextBlock>

                <Label Grid.Column="1" VerticalAlignment="Top" Foreground="#FFF5F4F4" HorizontalContentAlignment="Center" FontWeight="Bold" FontSize="14" Grid.ColumnSpan="2">Справка</Label>
                <TextBlock Grid.Column="1" Margin="10,0,0,0" VerticalAlignment="Bottom" TextWrapping="Wrap" Grid.ColumnSpan="2">
                    Старт - запуск программы<LineBreak/>
                    Для закрытия программы нажмите и удерживайте клавишу Ctrl и щелкните мышью в любое место окна. После выполнения установленного количества повторов программа закроется автоматически.
                </TextBlock>

            </Grid>

        </GroupBox>
    </Grid>
</Window>
