星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

KeyVerification.xaml 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <Window
  2. x:Class="XHWK.WKTool.KeyVerification"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. Title="KeyVerification"
  8. Width="446"
  9. Height="200"
  10. AllowsTransparency="True"
  11. Background="Transparent"
  12. BorderBrush="#4597FF"
  13. BorderThickness="1"
  14. ShowInTaskbar="False"
  15. WindowStartupLocation="CenterOwner"
  16. WindowStyle="None"
  17. mc:Ignorable="d">
  18. <Window.Resources />
  19. <Grid Margin="0,0,0,0" Background="White">
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="40" />
  22. <RowDefinition Height="*" />
  23. <RowDefinition Height="75" />
  24. </Grid.RowDefinitions>
  25. <!-- 头部 -->
  26. <Grid
  27. Grid.Row="0"
  28. Background="#4597FF"
  29. MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  30. <TextBlock
  31. x:Name="TitleTb"
  32. Grid.Row="0"
  33. Margin="15,0,0,0"
  34. HorizontalAlignment="Left"
  35. VerticalAlignment="Center"
  36. FontSize="18"
  37. Foreground="White"
  38. Text="产品激活" />
  39. <Button
  40. x:Name="BtnDown"
  41. Grid.Row="0"
  42. Padding="10,0,10,0"
  43. HorizontalAlignment="Right"
  44. VerticalAlignment="Center"
  45. Click="CloseClick"
  46. Content="×"
  47. Cursor="Hand"
  48. FontSize="30"
  49. Foreground="#FFFFFF" />
  50. </Grid>
  51. <Grid Grid.Row="1" Margin="30,20,30,0">
  52. <Grid.ColumnDefinitions>
  53. <ColumnDefinition Width="Auto" />
  54. <ColumnDefinition Width="*" />
  55. </Grid.ColumnDefinitions>
  56. <TextBlock
  57. Padding="0,0,0,0"
  58. VerticalAlignment="Center"
  59. FontSize="16"
  60. Text="密匙:" />
  61. <TextBox
  62. x:Name="TxbKey"
  63. Grid.Column="1"
  64. Height="36"
  65. VerticalAlignment="Center"
  66. VerticalContentAlignment="Center"
  67. FontSize="16"
  68. Foreground="gray"
  69. Text="" />
  70. </Grid>
  71. <Button
  72. x:Name="BtnEnd"
  73. Grid.Row="2"
  74. Width="138"
  75. Height="36"
  76. Margin="30,0,30,0"
  77. Click="BtnEndClick"
  78. Content="验证"
  79. Cursor="Hand"
  80. FontSize="16"
  81. FontWeight="Bold"
  82. Foreground="White"
  83. IsDefault="True">
  84. <Button.Template>
  85. <ControlTemplate TargetType="{x:Type Button}">
  86. <Border
  87. BorderBrush="{TemplateBinding Control.BorderBrush}"
  88. BorderThickness="0"
  89. CornerRadius="3">
  90. <Border.Background>#6098FF</Border.Background>
  91. <ContentPresenter
  92. HorizontalAlignment="Center"
  93. VerticalAlignment="Center"
  94. Content="{TemplateBinding ContentControl.Content}" />
  95. </Border>
  96. </ControlTemplate>
  97. </Button.Template>
  98. </Button>
  99. </Grid>
  100. </Window>