<Window x:Class="FasdDesktopUi.Pages.SplashScreenView.SplashScreenView"
        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:FasdDesktopUi.Pages.SplashScreenView"
        xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon"
        mc:Ignorable="d"
        Title="First Aid Service Desk"
        Height="240"
        Width="430"
        ResizeMode="NoResize"
        Topmost="True"
        WindowStartupLocation="CenterScreen"
        WindowStyle="None"
        IsVisibleChanged="Window_IsVisibleChanged">

    <Border Padding="12.5 7.5"
            Background="#234B92">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>

            <ico:AdaptableIcon x:Name="MinimizeButton"
                               Grid.Row="0"
                               Grid.Column="2"
                               PrimaryIconColor="White"
                               HorizontalAlignment="Right"
                               Cursor="Hand"
                               MouseLeftButtonUp="MinimizeButton_MouseLeftButtonUp"
                               TouchDown="MinimizeButton_TouchDown">
                <ico:AdaptableIcon.Resources>
                    <Style TargetType="ico:AdaptableIcon">
                        <Setter Property="Opacity"
                                Value="1" />
                        <Style.Triggers>
                            <Trigger Property="IsMouseOver"
                                     Value="True">
                                <Setter Property="Opacity"
                                        Value="0.6" />
                            </Trigger>
                        </Style.Triggers>
                    </Style>
                </ico:AdaptableIcon.Resources>
                <ico:AdaptableIcon.SelectedInternIcon>
                    window_minimize
                </ico:AdaptableIcon.SelectedInternIcon>
            </ico:AdaptableIcon>

            <ico:AdaptableIcon Grid.Row="0"
                               Grid.RowSpan="3"
                               Grid.Column="0"
                               Grid.ColumnSpan="3"
                               HorizontalAlignment="Center"
                               VerticalAlignment="Center"
                               PrimaryIconColor="White"
                               IconHeight="220"
                               IconWidth="330"
                               SelectedInternIcon="f4sd_product_logo"
                               MouseLeftButtonDown="F4SDLogo_MouseLeftButtonDown"/>

            <Image Source="pack://application:,,,/Resources/Consulting4ITWhite.png"
                   Width="90"
                   Grid.Row="2"
                   Grid.Column="2" />

            <StackPanel Orientation="Horizontal"
                        Grid.Row="2"
                        Grid.Column="0"
                        VerticalAlignment="Bottom">
                <StackPanel.Resources>
                    <Style TargetType="TextBlock">
                        <Setter Property="Foreground"
                                Value="White" />
                        <Setter Property="FontFamily"
                                Value="Calibri" />
                        <Setter Property="Opacity"
                                Value="0.8" />
                    </Style>
                </StackPanel.Resources>

                <TextBlock x:Name="StatusTextBlock" />
                <TextBlock x:Name="LoadingDotBlock" />
            </StackPanel>

        </Grid>
    </Border>
</Window>

