<Application x:Class="Exam_Gromov.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:Exam_Gromov"
             StartupUri="MainWindow.xaml">
    
    <Application.Resources>
        
        <ControlTemplate TargetType="Button" x:Key="button">
            <Border x:Name="buttonBorder" CornerRadius="5" BorderBrush="black" BorderThickness="1" Background="White"  Width="110" Height="33"  VerticalAlignment="Center" HorizontalAlignment="Center" Cursor="Hand">
                <ContentControl HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" FontSize="20"/>
            </Border>
            <ControlTemplate.Triggers>
                <Trigger Property="IsMouseOver" Value="true">
                    <Setter TargetName="buttonBorder" Property="Background">
                        <Setter.Value>
                            <LinearGradientBrush>
                                <GradientStop Color="Ivory" Offset="0"/>
                                <GradientStop Color="#EDF5E1" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <ControlTemplate TargetType="Button" x:Key="button2">
            <Border x:Name="buttonBorder" CornerRadius="5" BorderBrush="black" BorderThickness="1" Background="White"  Width="150" Height="30"  VerticalAlignment="Center" HorizontalAlignment="Center" Cursor="Hand">
                <ContentControl HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" FontSize="20"/>
            </Border>
            <ControlTemplate.Triggers>
                <Trigger Property="IsMouseOver" Value="true">
                    <Setter TargetName="buttonBorder" Property="Background">
                        <Setter.Value>
                            <LinearGradientBrush>
                                <GradientStop Color="Ivory" Offset="0"/>
                                <GradientStop Color="#EDF5E1" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <Style x:Key="Information" TargetType="StackPanel">
            <Setter Property="Margin" Value="20, 0, 0, 0"/>
        </Style>

        <Style x:Key="Shablon" TargetType="StackPanel">
            <Setter Property="Width" Value="600"/>
        </Style>

    </Application.Resources>
</Application>
