<Window x:Class="ShaferExample.RegistrationWindow"
        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:ShaferExample"
        mc:Ignorable="d"
        WindowStyle="None"
        ResizeMode="NoResize"
        MouseDown="Window_MouseDown"
        Title="ShaferExampleApp" Height="645" Width="800">
    <Border BorderBrush="#FFA0A0A0" BorderThickness="1">
        <Grid>
            <StackPanel x:Name="Loader" Visibility="Collapsed" Background="Black" Height="640" Margin="0" Width="800" Opacity="0.7" Panel.ZIndex="2" HorizontalAlignment="Center" VerticalAlignment="Center">
                <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="453">
                    <Canvas Margin="377,301,381,120" Width="32">
                        <Canvas.Triggers>
                            <EventTrigger RoutedEvent="Canvas.Loaded">
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation 
                                            From="0" To="360" 
                                            RepeatBehavior="Forever" 
                                            Storyboard.TargetName="spin" 
                                            Storyboard.TargetProperty="(RotateTransform.Angle)" 
                                            />
                                    </Storyboard>
                                </BeginStoryboard>
                            </EventTrigger>
                        </Canvas.Triggers>
                        <Canvas.RenderTransform>
                            <RotateTransform x:Name="spin" Angle="0" CenterX="16" CenterY="16" />
                        </Canvas.RenderTransform>
                        <Image Source="Images\loader.png" Width="32" Height="32"/>
                    </Canvas>
                    <TextBlock Text="Activating..." FontSize="18" Foreground="White" Margin="350,272,346,157" VerticalAlignment="Center" HorizontalAlignment="Center" Width="104"/>
                </Grid>
            </StackPanel>
            <Rectangle Fill="Black" Opacity="0.7" Visibility="{Binding IsOpen, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=popLtcoCheckout}" Panel.ZIndex="1"/>
            <Popup Name="popLtcoCheckout" Placement="Center" PopupAnimation="Fade" AllowsTransparency="True" IsOpen="False" Panel.ZIndex="1">
                <Border BorderBrush="#FFA0A0A0" BorderThickness="2">
                    <Grid Background="#FFE5E5E5" Height="126" Width="232">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Label Content="LTCO Code" HorizontalAlignment="Left" FontWeight="Bold" Margin="10,0,0,0"/>
                        <StackPanel Orientation="Horizontal" Margin="10,28,82,55">
                            <TextBox x:Name="tbLtcoCode" Margin="5,6,0,7" Width="206" Height="30" Padding="5" Text=""/>
                        </StackPanel>
                        <Button Content="Checkout" HorizontalAlignment="Left" Margin="119,78,0,0" VerticalAlignment="Top" Width="104" Height="39" Click="LtcoCheckout"/>
                        <Button Content="Cancel" HorizontalAlignment="Left" Margin="10,78,0,0" VerticalAlignment="Top" Width="104" Height="39" Click="CloseLtcoCheckoutPopup"/>
                    </Grid>
                </Border>
            </Popup>
            <Separator Margin="0,35,0,589"></Separator>
            <Image Source="assets/logo.png" HorizontalAlignment="Left" Height="25" Margin="10,10,0,0" VerticalAlignment="Top" Width="198"/>
            <Image Source="assets/close.png" HorizontalAlignment="Left" Height="27" Margin="762,8,0,0" VerticalAlignment="Top" Width="27" MouseLeftButtonDown="Window_Close"/>
            <Frame x:Name="MainFrame" Margin="0,48,0,0" LoadCompleted="MainFrameLoadCompleted" NavigationUIVisibility="Hidden"/>
            <TextBlock x:Name="AppName"  HorizontalAlignment="Left" Margin="216,6,0,0" TextWrapping="Wrap" VerticalAlignment="Top" FontWeight="Bold"/>
            <TextBlock x:Name="AppDesc" HorizontalAlignment="Left" Margin="216,22,0,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="11"/>
        </Grid>
    </Border>
</Window>
