ironservices-maui/Controls/LicenseActivationView.xaml

95 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IronServices.Maui.Controls.LicenseActivationView">
<Border Padding="24"
BackgroundColor="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray900}}"
Stroke="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray600}}"
StrokeShape="RoundRectangle 12">
<Border.Shadow>
<Shadow Brush="Black" Offset="0,2" Radius="8" Opacity="0.15" />
</Border.Shadow>
<VerticalStackLayout Spacing="16">
<!-- Icon -->
<Label Text="&#x1F511;"
FontSize="48"
HorizontalOptions="Center" />
<!-- Title -->
<Label x:Name="TitleLabel"
Text="Activate License"
FontSize="24"
FontAttributes="Bold"
HorizontalOptions="Center" />
<!-- Subtitle -->
<Label x:Name="SubtitleLabel"
Text="Enter your license key to activate"
FontSize="14"
TextColor="{AppThemeBinding Light={StaticResource Gray500}, Dark={StaticResource Gray400}}"
HorizontalOptions="Center"
Margin="0,0,0,8" />
<!-- License Key Entry -->
<Entry x:Name="LicenseKeyEntry"
Placeholder="XXXX-XXXX-XXXX-XXXX"
FontFamily="Consolas"
FontSize="16"
HorizontalTextAlignment="Center"
MaxLength="36"
Keyboard="Plain"
ReturnType="Done" />
<!-- Status Display -->
<Border x:Name="StatusFrame"
IsVisible="False"
Padding="12"
StrokeThickness="0"
StrokeShape="RoundRectangle 8">
<HorizontalStackLayout Spacing="8" HorizontalOptions="Center">
<Label x:Name="StatusIcon" FontSize="20" />
<Label x:Name="StatusLabel" FontSize="14" VerticalOptions="Center" />
</HorizontalStackLayout>
</Border>
<!-- Error Message -->
<Label x:Name="ErrorLabel"
TextColor="Red"
FontSize="12"
HorizontalOptions="Center"
HorizontalTextAlignment="Center"
IsVisible="False" />
<!-- Activate Button -->
<Button x:Name="ActivateButton"
Text="Activate"
Clicked="OnActivateClicked"
HeightRequest="48"
CornerRadius="8"
Margin="0,8,0,0" />
<!-- Loading Indicator -->
<ActivityIndicator x:Name="LoadingIndicator"
IsRunning="False"
IsVisible="False"
HorizontalOptions="Center" />
<!-- Help Link -->
<Label x:Name="HelpLink"
Text="Need help finding your license key?"
FontSize="12"
TextColor="{StaticResource Primary}"
TextDecorations="Underline"
HorizontalOptions="Center">
<Label.GestureRecognizers>
<TapGestureRecognizer Tapped="OnHelpTapped" />
</Label.GestureRecognizers>
</Label>
</VerticalStackLayout>
</Border>
</ContentView>