SoftAuthDialog.xaml 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <Window x:Class="SWRIS.SoftAuthDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:SWRIS"
  7. xmlns:pu="https://opensource.panuon.com/wpf-ui"
  8. TextElement.FontSize="16"
  9. FontFamily="Microsoft YaHei"
  10. WindowStyle="None"
  11. mc:Ignorable="d" Loaded="Window_Loaded"
  12. WindowStartupLocation="CenterScreen"
  13. AllowsTransparency="True"
  14. Background="Transparent"
  15. Title="SoftAuthDialog" Width="540" Height="470" >
  16. <Border BorderThickness="5" CornerRadius="15" Background="#FFFFFF" MouseLeftButtonDown="Card_MouseLeftButtonDown">
  17. <Grid>
  18. <StackPanel Orientation="Vertical" Margin="25,0" HorizontalAlignment="Center">
  19. <Image Name="imgQRCode" Height="200" Width="200" Margin="40" />
  20. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
  21. <Label Content="本机码:" HorizontalAlignment="Right"/>
  22. <TextBlock Name="txtMachineCode" Text="{Binding Path=AuthorizeModel.MachineCode}" VerticalAlignment="Center" TextAlignment="Right"/>
  23. <Button Content="复制" Margin="10,0" Cursor="Hand" BorderThickness="0" Foreground="#0496fc" Click="Copy_Click"/>
  24. </StackPanel>
  25. <StackPanel Orientation="Vertical">
  26. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,15,0,25">
  27. <Label Content="注册码:" VerticalAlignment="Center" HorizontalAlignment="Right"/>
  28. <ContentControl Content="{Binding Path=AuthorizeModel.FinalData}">
  29. <ContentControl.ContentTemplate>
  30. <DataTemplate>
  31. <StackPanel Orientation="Horizontal">
  32. <TextBox Text="{Binding First}" MinWidth="45" VerticalAlignment="Center" MaxLength="4" Padding="2" >
  33. <TextBox.CommandBindings>
  34. <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" />
  35. </TextBox.CommandBindings>
  36. </TextBox>
  37. <Label Content="-"/>
  38. <TextBox Text="{Binding Second}" MinWidth="45" VerticalAlignment="Center" MaxLength="4" Padding="2" >
  39. <TextBox.CommandBindings>
  40. <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" />
  41. </TextBox.CommandBindings>
  42. </TextBox>
  43. <Label Content="-"/>
  44. <TextBox Text="{Binding Third}" MinWidth="45" VerticalAlignment="Center" MaxLength="4" Padding="2" >
  45. <TextBox.CommandBindings>
  46. <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" />
  47. </TextBox.CommandBindings>
  48. </TextBox>
  49. <Label Content="-"/>
  50. <TextBox Text="{Binding Fourth}" MinWidth="45" VerticalAlignment="Center" MaxLength="4" Padding="2" TextChanged="Fourth_TextChanged" />
  51. </StackPanel>
  52. </DataTemplate>
  53. </ContentControl.ContentTemplate>
  54. </ContentControl>
  55. <TextBlock Name="piCheckResult" Margin="10,0,0,0" Width="25" Height="25" VerticalAlignment="Center" Foreground="LawnGreen" Visibility="Hidden"/>
  56. </StackPanel>
  57. </StackPanel>
  58. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,20">
  59. <Button Name="btnSave" IsDefault="True" Margin="0 0 20 0" Content="激活" Height="30"
  60. Width="50" Click="BtnSave_Click" Cursor="Hand"/>
  61. <Button IsCancel="True" Margin="20 0 0 0" Content="取消" Width="50" Height="30"
  62. Cursor="Hand"/>
  63. </StackPanel>
  64. </StackPanel>
  65. </Grid>
  66. </Border>
  67. </Window>