<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        x:Class="Predictalytics.Shell.Views.LicenseWindow"
        Title="Predictalytics — Lizenzaktivierung"
        Width="580" SizeToContent="Height"
        CanResize="False"
        WindowStartupLocation="CenterScreen">

  <StackPanel Margin="24" Spacing="16">

    <TextBlock TextWrapping="Wrap" FontSize="15" FontWeight="SemiBold"
               Text="Diese Installation benötigt eine gültige Lizenz." />

    <TextBlock TextWrapping="Wrap" Opacity="0.8"
               Text="Bitte Lizenzschlüssel eingeben (Format: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX):" />

    <TextBox Name="KeyBox"
             FontFamily="Cascadia Code,DejaVu Sans Mono,Consolas,monospace"
             FontSize="14"
             PlaceholderText="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" />

    <TextBlock Name="StatusText" TextWrapping="Wrap" MinHeight="34" IsVisible="False" />

    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Spacing="12">
      <ProgressBar Name="Busy" IsIndeterminate="True" Width="100"
                   VerticalAlignment="Center" IsVisible="False" />
      <Button Name="ActivateButton" Content="Aktivieren" MinWidth="110" IsDefault="True"
              Click="OnActivateClick" />
      <Button Content="Beenden" MinWidth="100" IsCancel="True" Click="OnExitClick" />
    </StackPanel>

    <!-- Die Aktivierung wird am Server an diese Hardware-ID gebunden. -->
    <Border BorderThickness="0,1,0,0" Padding="0,12,0,0"
            BorderBrush="{DynamicResource SystemControlForegroundBaseLowBrush}">
      <StackPanel Spacing="4">
        <TextBlock Text="Hardware-ID dieser Maschine" FontSize="11" Opacity="0.6" />
        <SelectableTextBlock Name="HardwareIdText"
                             FontFamily="Cascadia Code,DejaVu Sans Mono,Consolas,monospace"
                             FontSize="11" Opacity="0.8" TextWrapping="Wrap" />
      </StackPanel>
    </Border>

  </StackPanel>
</Window>
