星火微课系统客户端
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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="400"
  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="50" />
  22. <RowDefinition Height="*" />
  23. <RowDefinition Height="75" />
  24. </Grid.RowDefinitions>
  25. <!-- 头部 -->
  26. <Grid
  27. Grid.Row="0"
  28. Height="50"
  29. Background="#4597FF"
  30. MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  31. <TextBlock
  32. x:Name="TitleTb"
  33. Grid.Row="0"
  34. Margin="15,0,0,0"
  35. HorizontalAlignment="Left"
  36. VerticalAlignment="Center"
  37. FontSize="18"
  38. Foreground="White"
  39. Text="产品激活" />
  40. <Button
  41. x:Name="BtnDown"
  42. Grid.Row="0"
  43. Padding="10,0,10,0"
  44. HorizontalAlignment="Right"
  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>