<Window x:Class="InteractiveKiosk.Events.ChildrensDayEdit"
        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:InteractiveKiosk.Events"
        mc:Ignorable="d"
        Height="450" Width="800" AllowsTransparency="True" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Icon="C:\Users\locadm\Source\Repos\InteractiveKiosk9\InteractiveKiosk\Logo.png" WindowStyle="None" Background="Transparent" FontWeight="Bold">
    <Grid Name="Kamikadzee" Background="Transparent">
        <Border CornerRadius="20" BorderBrush="Black" BorderThickness="0" Grid.RowSpan="2">
            <Border.Background>
                <ImageBrush ImageSource="C:\Users\locadm\Source\Repos\InteractiveKiosk9\InteractiveKiosk\file.jpg"/>
            </Border.Background>
        </Border>
        <Image Source="C:\Users\locadm\Source\Repos\InteractiveKiosk9\InteractiveKiosk\Logo.png" Margin="10,10,650,383"></Image>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Width="109" Grid.RowSpan="2">
            <Image x:Name="BackButton" Height="23" Width="20" Margin="18,-405,-13,0" MouseDown="BackButton_MouseDown">
                <Image.Style>
                    <Style TargetType="{x:Type Image}">
                        <Setter Property="Source" Value="C:\Users\locadm\Source\Repos\InteractiveKiosk9\InteractiveKiosk\Resources\back(inactive).png"/>
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding IsMouseOver, ElementName=BackButton}"
                                         Value="True">
                                <Setter Property="Source" Value="C:\Users\locadm\Source\Repos\InteractiveKiosk9\InteractiveKiosk\Resources\back.png"/>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </Image.Style>
            </Image>
            <Image x:Name="MinButton" Height="23" Width="20" Margin="20,-405,-13,0" MouseDown="MinButton_MouseDown">
                <Image.Style>
                    <Style TargetType="{x:Type Image}">
                        <Setter Property="Source" Value="C:\Users\locadm\Source\Repos\InteractiveKiosk9\InteractiveKiosk\Resources\min(inactive).png"/>
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding IsMouseOver, ElementName=MinButton}"
                                         Value="True">
                                <Setter Property="Source" Value="C:\Users\locadm\Source\Repos\InteractiveKiosk9\InteractiveKiosk\Resources\min.png"/>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </Image.Style>
            </Image>
            <Image x:Name="ExitButton" Height="23" Width="20" Margin="20,-405,20,0" MouseDown="ExitButton_MouseDown">
                <Image.Style>
                    <Style TargetType="{x:Type Image}">
                        <Setter Property="Source" Value="C:\Users\locadm\Source\Repos\InteractiveKiosk9\InteractiveKiosk\Resources\exit(inactive).png"/>
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding IsMouseOver, ElementName=ExitButton}"
                                         Value="True">
                                <Setter Property="Source" Value="C:\Users\locadm\Source\Repos\InteractiveKiosk9\InteractiveKiosk\Resources\exit.png"/>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </Image.Style>
            </Image>
        </StackPanel>
        <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="ДЕНЬ ЗАЩИТЫ ДЕТЕЙ" VerticalAlignment="Top" Height="29" Width="205" Margin="298,28,0,0" FontSize="20" FontFamily="Segoe UI Semilight"/>
        <StackPanel>
            <Image Source="C:\Users\locadm\Source\Repos\InteractiveKiosk9\InteractiveKiosk\Events\June, 1.png" Height="240" Width="240" Margin="-465,80,0,0"/>
            <TextBox Name="DescriptionChildren" Margin="318,-190,0,0" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Height="260" Width="472" FontSize="14" FontFamily="Segoe UI Semilight"/>
            <TextBlock Text="В программе:"  HorizontalAlignment="Left" Margin="319,-310,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="30" Width="100" FontSize="14" FontFamily="Segoe UI Semibold" RenderTransformOrigin="0.51,0.733"/>
            <TextBox Name="Beginning" HorizontalAlignment="Left" Margin="125,-54,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="30" Width="163" FontSize="14" FontFamily="Segoe UI Semilight"/>
            <TextBox Name="Ending" HorizontalAlignment="Left" Margin="125,-20,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="30" Width="163" FontSize="14" FontFamily="Segoe UI Semilight"/>
            <TextBlock Text="Начало:"  HorizontalAlignment="Left" Margin="65,-60,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="30" Width="60" FontSize="14" FontFamily="Segoe UI Semibold" Foreground="#6495ed"/>
            <TextBlock Text="Конец:"  HorizontalAlignment="Left" Margin="65,-27,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="30" Width="60" FontSize="14" FontFamily="Segoe UI Semibold" Foreground="#6495ed"/>
            <Border Name="Saved" BorderThickness="1" Background="Black" CornerRadius="15" Margin="330,7,330,7" Height="32">
                <Border.Style>
                    <Style TargetType="{x:Type Border}">
                        <Setter Property="BorderBrush" Value="Black"/>
                        <Style.Triggers>
                            <EventTrigger RoutedEvent="PreviewMouseDown">
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation Storyboard.TargetProperty="BorderBrush.Color" Duration="0:0:0.100" To="Gray"/>
                                    </Storyboard>
                                </BeginStoryboard>
                            </EventTrigger>
                            <EventTrigger RoutedEvent="PreviewMouseUp">
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation Storyboard.TargetProperty="BorderBrush.Color" Duration="0:0:0.100" To="Black"/>
                                    </Storyboard>
                                </BeginStoryboard>
                            </EventTrigger>
                        </Style.Triggers>
                    </Style>
                </Border.Style>
                <Button Content="СОХРАНИТЬ" FontSize="11" Foreground="Black" FontFamily="Segoe UI Semilight" Click="Save">
                    <Button.Style>
                        <Style TargetType="Button">
                            <Setter Property="OverridesDefaultStyle" Value="True"/>
                            <Setter Property="Background" Value="White"/>
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate TargetType="Button">
                                        <Border Name="Border" BorderThickness="0" BorderBrush="Black" CornerRadius="15" Background="{TemplateBinding Background}">
                                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                        </Border>
                                        <ControlTemplate.Triggers>
                                            <Trigger Property="IsMouseOver" Value="True">
                                                <Setter Property="Background" Value="LightGray"/>
                                            </Trigger>
                                            <EventTrigger RoutedEvent="PreviewMouseDown">
                                                <BeginStoryboard>
                                                    <Storyboard>
                                                        <ThicknessAnimation Storyboard.TargetProperty="Margin" Duration="0:0:0.100" To="2, 2, 0, 0"/>
                                                        <ColorAnimation Storyboard.TargetProperty="Background.Color" To="LightGray" Duration="0:0:0.0002"/>
                                                    </Storyboard>
                                                </BeginStoryboard>
                                            </EventTrigger>
                                            <EventTrigger RoutedEvent="PreviewMouseUp">
                                                <BeginStoryboard>
                                                    <Storyboard>
                                                        <ThicknessAnimation Storyboard.TargetProperty="Margin" Duration="0:0:0.100" To="0, 0, 0, 0"/>
                                                        <ColorAnimation Storyboard.TargetProperty="Background.Color" To="White" Duration="0:0:0.0002"/>
                                                    </Storyboard>
                                                </BeginStoryboard>
                                            </EventTrigger>
                                        </ControlTemplate.Triggers>
                                    </ControlTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </Button.Style>
                </Button>
            </Border>
        </StackPanel>
    </Grid>
</Window>
