| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <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="490" >
- <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" VerticalAlignment="Center"/>
- <TextBlock Name="txtMachineCode" FontSize="16"
- Text="{Binding Path=AuthorizeModel.MachineCode}"
- VerticalAlignment="Center" TextAlignment="Right"/>
- <Button Content="复制" Width="50" Background="Transparent" Cursor="Hand" BorderThickness="0"
- Margin="10,0,0,4" 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 x:Name="TextBoxFirst" FontSize="16" Style="{StaticResource AuthorizeTextBoxStyle}"
- Text="{Binding First, UpdateSourceTrigger=PropertyChanged}"
- Padding="6" VerticalAlignment="Bottom" MaxLength="4" CharacterCasing="Upper"
- TextChanged="OnCodeTextBoxTextChanged">
- <TextBox.CommandBindings>
- <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" />
- </TextBox.CommandBindings>
- </TextBox>
- <Label Content="-"/>
- <TextBox x:Name="TextBoxSecond" FontSize="16" Style="{StaticResource AuthorizeTextBoxStyle}"
- Text="{Binding Second, UpdateSourceTrigger=PropertyChanged}"
- Padding="6" VerticalAlignment="Bottom" MaxLength="4" CharacterCasing="Upper"
- TextChanged="OnCodeTextBoxTextChanged">
- <TextBox.CommandBindings>
- <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" />
- </TextBox.CommandBindings>
- </TextBox>
- <Label Content="-"/>
- <TextBox x:Name="TextBoxThird" FontSize="16" Style="{StaticResource AuthorizeTextBoxStyle}"
- Text="{Binding Third, UpdateSourceTrigger=PropertyChanged}"
- Padding="6" VerticalAlignment="Bottom" MaxLength="4" CharacterCasing="Upper"
- TextChanged="OnCodeTextBoxTextChanged">
- <TextBox.CommandBindings>
- <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" />
- </TextBox.CommandBindings>
- </TextBox>
- <Label Content="-"/>
- <TextBox x:Name="TextBoxFourth" FontSize="16" Style="{StaticResource AuthorizeTextBoxStyle}"
- Text="{Binding Fourth, UpdateSourceTrigger=PropertyChanged}"
- Padding="6" VerticalAlignment="Bottom" MaxLength="4" CharacterCasing="Upper"
- TextChanged="OnCodeTextBoxTextChanged"/>
- </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,10">
- <Button Name="btnSave" IsDefault="True" Margin="0 0 20 0" Content="激活" Style="{StaticResource AuthorizeButtonStyle}"
- Click="BtnSave_Click" Cursor="Hand" IsEnabled="False"/>
- <Button IsCancel="True" Margin="20 0 0 0" Content="取消" Style="{StaticResource AuthorizeButtonStyle}"
- Cursor="Hand" />
- </StackPanel>
- </StackPanel>
- </Grid>
- </Border>
- </Window>
|