<Window x:Class="InteractiveKiosk.Attractions.NloEdit"
        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.Attractions"
        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="110">
            <Image x:Name="BackButton" Height="23" Width="20" Margin="19,-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="270" Margin="265,28,0,0" FontSize="20" FontFamily="Segoe UI Semilight"/>
        <StackPanel>
            <Image Source="C:\Users\locadm\Source\Repos\InteractiveKiosk9\InteractiveKiosk\Attractions\Extreme\nlo.png" Height="240" Width="240" Margin="-465,80,0,0"/>
            <TextBlock Text="Правила:"  HorizontalAlignment="Left" Margin="319,-130,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="30" Width="100" FontSize="14" FontFamily="Segoe UI Semibold"/>
            <TextBox Name="Rules" HorizontalAlignment="Left" Margin="319,-90,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="150" Width="471" FontSize="14" FontFamily="Segoe UI Semilight"/>
            <TextBox Name="PriceNlo" HorizontalAlignment="Left" Margin="125,-40,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="20" Width="50" FontSize="14" FontFamily="Segoe UI Semilight"/>
            <ComboBox Name="Bonus" HorizontalAlignment="Left" Margin="210,-10,0,0" VerticalAlignment="Top" Height="20" Width="65" FontSize="14" FontFamily="Segoe UI Semilight"/>
            <TextBlock Text="Цена:"  HorizontalAlignment="Left" Margin="80,-52,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="30" Width="45" FontSize="14" FontFamily="Segoe UI Semibold" Foreground="#6495ed"/>
            <TextBlock Text="рублей"  HorizontalAlignment="Left" Margin="181,-52,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="30" Width="50" FontSize="14" FontFamily="Segoe UI Semilight"/>
            <TextBlock Text="Бонусная система:"  HorizontalAlignment="Left" Margin="80,-22,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="30" Width="130" FontSize="14" FontFamily="Segoe UI Semibold" Foreground="#6495ed"/>
            <TextBox x:Name="DescriptionNlo" HorizontalAlignment="Left" Margin="319,-317,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="100" Width="400" FontSize="14" FontFamily="Segoe UI Semilight"/>
        </StackPanel>
        <Border Name="Saved" BorderThickness="1" Background="Black" CornerRadius="15" Margin="330,410,330,7">
            <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>
    </Grid>
</Window>
