<UserControl x:Class="Ion.Sdk.DemoApp.Views.UploadLicenseDialog"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:Ion.Sdk.DemoApp.Views"
             x:Name="View"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="300"
             Width="400"
             MinHeight="180">
    <Grid x:Name="Root"
          IsHitTestVisible="True">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Border Grid.Row="0"
                Background="{StaticResource Brush.Background.Weak}" />
        <Grid x:Name="HeaderGrid"
              Grid.Row="0"
              Background="{StaticResource Brush.Background.Weak}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Viewbox Stretch="Uniform"
                     Height="13"
                     Margin="15 0 0 0"
                     SnapsToDevicePixels="True">
                <Path Stretch="Uniform"
                      Data="{StaticResource Geometry.License}"
                      Fill="{StaticResource Brush.Accent.Strong}" />
            </Viewbox>
            <TextBlock Grid.Column="1"
                       Margin="{StaticResource Margin.Content}"
                       Foreground="{StaticResource Brush.Accent.Strong}"
                       Text="Upload license" />
            <Button Grid.Column="1"
                    Style="{StaticResource Button.Circle}"
                    Command="{Binding ElementName=View, Path=CloseCommand}"
                    ContentTemplate="{StaticResource Button.Template.Close}"
                    VerticalAlignment="Top"
                    HorizontalAlignment="Right"
                    Margin="{StaticResource Margin.Button}" />
        </Grid>
        <StackPanel Grid.Row="1"
                    Margin="{StaticResource Margin.Content}">
            <Label Style="{StaticResource Label.Top}"
                   Content="License key" />
            <Grid>
                <TextBox x:Name="LicenseKeyTextBox"
                         Text="{Binding Path=LicenseKey, UpdateSourceTrigger=PropertyChanged}"
                         Style="{StaticResource TextBox.Classic}" />
                <TextBlock Style="{StaticResource TextBlock.Hint}"
                           Tag="{Binding ElementName=LicenseKeyTextBox}"
                           Text="Enter license key here" />
            </Grid>
        </StackPanel>
        <Grid Grid.Row="2">
            <Border Background="{StaticResource Brush.Background.Weak}" />
            <Button Style="{StaticResource Button.Classic}"
                    HorizontalAlignment="Right"
                    Margin="{StaticResource Margin.Button }"
                    Content="Upload"
                    Command="{Binding ElementName=View, Path=UploadCommand}" />
        </Grid>
    </Grid>
</UserControl>
