<Page x:Class="ShaferExample.OfflineActivation"
      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:ShaferExample"
      mc:Ignorable="d"
      Title="OnlineActivation" Height="550" Width="770">

    <Grid Margin="0,0,0,10">
        <Button Name="btnActivateApp"  Content="Activate" HorizontalAlignment="Left" Margin="558,491,0,0" VerticalAlignment="Top" Width="150" Height="39" Click="GetLicense"/>
        <TextBox Name="tbLicenseCode" Padding="5" HorizontalAlignment="Left" Height="38" Margin="0,166,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="553" FontSize="16" TextChanged="LicenseCodeTextChanged"/>
        <TextBlock HorizontalAlignment="Left" Margin="0,142,0,0" TextWrapping="Wrap" Text="Application License Code" VerticalAlignment="Top" RenderTransformOrigin="-0.451,0.579" Height="19" Width="172"/>

        <Button Content="Cancel" HorizontalAlignment="Left" Margin="403,491,0,0" VerticalAlignment="Top" Width="150" Height="39" Click="Cancel"/>
        <TextBlock HorizontalAlignment="Left" Margin="0,1,0,0" TextWrapping="Wrap" Text="OFFLINE ACTIVATION" VerticalAlignment="Top" FontFamily="Open Sans Semibold" Height="42" Width="374" FontSize="36"/>
        <TextBlock HorizontalAlignment="Left" Margin="0,48,0,0" TextWrapping="Wrap" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed convallis semper erat volutpat dapibus. Aliquam ac tristique neque. Nulla et sodales mi, a malesuada dolor. Vestibulum porta efficitur libero eget viverra. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam ac fermentum tortor." VerticalAlignment="Top" Height="89" Width="572" FontSize="14" FontFamily="Segoe UI Symbol"/>
        <TextBlock HorizontalAlignment="Left" Margin="0,421,0,0" TextWrapping="Wrap" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit." VerticalAlignment="Top" Height="22" Width="389" FontSize="14" FontFamily="Segoe UI Symbol"/>
        <TextBlock HorizontalAlignment="Left" Margin="343,421,0,0" TextWrapping="Wrap" Text="Online activation" VerticalAlignment="Top" Height="22" Width="112" FontSize="14" FontFamily="Segoe UI Semibold" Foreground="#FF49AEF3" MouseLeftButtonDown="OnlineActivation" />
        <TextBlock HorizontalAlignment="Left" Margin="0,443,0,0" TextWrapping="Wrap" Text="Nulla et sodales mi, a malesuada dolor. Vestibulum porta efficitur libero eget viverra." VerticalAlignment="Top" Height="22" Width="572" FontSize="14" FontFamily="Segoe UI Symbol"/>
        <Button x:Name="btnGenerate"  Content="Generate" HorizontalAlignment="Left" Margin="558,166,0,0" VerticalAlignment="Top" Width="150" Height="38" Click="Generate" Visibility="Hidden"/>
        <Button x:Name="btnGenerateTrial"  Content="Generate Trial" HorizontalAlignment="Left" Margin="558,166,0,0" VerticalAlignment="Top" Width="150" Height="38" Click="GenerateTrial"/>
        <TextBox x:Name="tbActivationCertificate" HorizontalAlignment="Left" Height="79" Margin="0,233,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="553" IsEnabled="False" TextChanged="ActivationCertificateTextChanged"/>
        <TextBlock HorizontalAlignment="Left" Margin="0,209,0,0" TextWrapping="Wrap" Text="Activation certificate" VerticalAlignment="Top" RenderTransformOrigin="-0.451,0.579" Height="19" Width="172"/>
        <TextBox x:Name="tbActivationCode" Padding="5" HorizontalAlignment="Left" Height="75" Margin="0,341,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="553" FontSize="16"/>
        <TextBlock HorizontalAlignment="Left" Margin="0,317,0,0" TextWrapping="Wrap" Text="Type Activation Code provided by page" VerticalAlignment="Top" RenderTransformOrigin="-0.451,0.579" Height="19" Width="553"/>
        <Button x:Name="btnCopyToClipboard"  Content="Copy to clipboard" HorizontalAlignment="Left" Margin="558,233,0,0" VerticalAlignment="Top" Width="150" Height="38" Click="CopyToClipboard" Visibility="Hidden"/>
        <Button x:Name="btnCopyFromClipboard"  Content="Paste from clipboard" HorizontalAlignment="Left" Margin="558,341,0,0" VerticalAlignment="Top" Width="150" Height="38" Click="CopyFromClipboard" Visibility="Hidden"/>
        <TextBlock HorizontalAlignment="Left" Margin="344,465,0,0" TextWrapping="Wrap" Text="Account based licensing" VerticalAlignment="Top" Height="22" Width="181" FontSize="14" FontFamily="Segoe UI Semibold" Foreground="#FF49AEF3" MouseLeftButtonDown="AblActivation" />
        <TextBlock HorizontalAlignment="Left" Margin="0,465,0,0" TextWrapping="Wrap" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit." VerticalAlignment="Top" Height="22" Width="389" FontSize="14" FontFamily="Segoe UI Symbol"/>
    </Grid>
</Page>
