| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <Window x:Class="SWRIS.SoftAuthDialog"
- 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:SWRIS"
- xmlns:pu="https://opensource.panuon.com/wpf-ui"
- TextElement.FontSize="16"
- FontFamily="Microsoft YaHei"
- WindowStyle="None"
- mc:Ignorable="d" Loaded="Window_Loaded"
- WindowStartupLocation="CenterScreen"
- AllowsTransparency="True"
- Background="Transparent"
- Title="SoftAuthDialog" Width="540" Height="470" >
- <Border BorderThickness="5" CornerRadius="15" Background="#FFFFFF" MouseLeftButtonDown="Card_MouseLeftButtonDown">
- <Grid>
- <StackPanel Orientation="Vertical" Margin="25,0" HorizontalAlignment="Center">
- <Image Name="imgQRCode" Height="200" Width="200" Margin="40" />
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
- <Label Content="本机码:" HorizontalAlignment="Right"/>
- <TextBlock Name="txtMachineCode" Text="{Binding Path=AuthorizeModel.MachineCode}" VerticalAlignment="Center" TextAlignment="Right"/>
- <Button Content="复制" Margin="10,0" Cursor="Hand" BorderThickness="0" Foreground="#0496fc" Click="Copy_Click"/>
- </StackPanel>
- <StackPanel Orientation="Vertical">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,15,0,25">
- <Label Content="注册码:" VerticalAlignment="Center" HorizontalAlignment="Right"/>
- <ContentControl Content="{Binding Path=AuthorizeModel.FinalData}">
- <ContentControl.ContentTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <TextBox Text="{Binding First}" MinWidth="45" VerticalAlignment="Center" MaxLength="4" Padding="2" >
- <TextBox.CommandBindings>
- <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" />
- </TextBox.CommandBindings>
- </TextBox>
- <Label Content="-"/>
- <TextBox Text="{Binding Second}" MinWidth="45" VerticalAlignment="Center" MaxLength="4" Padding="2" >
- <TextBox.CommandBindings>
- <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" />
- </TextBox.CommandBindings>
- </TextBox>
- <Label Content="-"/>
- <TextBox Text="{Binding Third}" MinWidth="45" VerticalAlignment="Center" MaxLength="4" Padding="2" >
- <TextBox.CommandBindings>
- <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" />
- </TextBox.CommandBindings>
- </TextBox>
- <Label Content="-"/>
- <TextBox Text="{Binding Fourth}" MinWidth="45" VerticalAlignment="Center" MaxLength="4" Padding="2" TextChanged="Fourth_TextChanged" />
- </StackPanel>
- </DataTemplate>
- </ContentControl.ContentTemplate>
- </ContentControl>
- <TextBlock Name="piCheckResult" Margin="10,0,0,0" Width="25" Height="25" VerticalAlignment="Center" Foreground="LawnGreen" Visibility="Hidden"/>
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,20">
- <Button Name="btnSave" IsDefault="True" Margin="0 0 20 0" Content="激活" Height="30"
- Width="50" Click="BtnSave_Click" Cursor="Hand"/>
- <Button IsCancel="True" Margin="20 0 0 0" Content="取消" Width="50" Height="30"
- Cursor="Hand"/>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Border>
- </Window>
|