星火微课系统客户端
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

KeyVerification.xaml 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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:Views="clr-namespace:XHWK.WKTool.Helpers"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:XHWK.WKTool"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. Title="KeyVerification"
  10. Width="400"
  11. Height="230"
  12. AllowsTransparency="True"
  13. Background="Transparent"
  14. ShowInTaskbar="False"
  15. WindowStartupLocation="CenterOwner"
  16. WindowStyle="None"
  17. mc:Ignorable="d">
  18. <Window.Resources>
  19. <Style x:Key="oiliu" TargetType="ListBoxItem">
  20. <!-- 设置控件模板 -->
  21. <Setter Property="Template">
  22. <Setter.Value>
  23. <ControlTemplate TargetType="ListBoxItem">
  24. <Border
  25. Margin="4,0,0,0"
  26. Padding="0"
  27. Background="{TemplateBinding Background}">
  28. <ContentPresenter
  29. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  30. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  31. TextBlock.Foreground="{TemplateBinding Foreground}" />
  32. </Border>
  33. </ControlTemplate>
  34. </Setter.Value>
  35. </Setter>
  36. </Style>
  37. <DataTemplate x:Key="UserTpl">
  38. <StackPanel
  39. Width="70.5"
  40. Height="auto"
  41. Background="Transparent">
  42. <TextBlock
  43. Padding="0,12,0,0"
  44. HorizontalAlignment="Left"
  45. FontSize="20"
  46. Foreground="#3C525B"
  47. Text="{Binding username}" />
  48. </StackPanel>
  49. </DataTemplate>
  50. </Window.Resources>
  51. <Views:ZJClippingBorder Background="White">
  52. <Grid Margin="0,0,0,0">
  53. <Grid.RowDefinitions>
  54. <RowDefinition Height="50" />
  55. <RowDefinition Height="*" />
  56. <RowDefinition Height="75" />
  57. </Grid.RowDefinitions>
  58. <!-- 头部 -->
  59. <Grid
  60. Grid.Row="0"
  61. Height="50"
  62. Background="#4597FF">
  63. <TextBlock
  64. x:Name="title_tb"
  65. Grid.Row="0"
  66. Margin="15,0,0,0"
  67. HorizontalAlignment="Left"
  68. VerticalAlignment="Center"
  69. FontSize="16"
  70. Foreground="White"
  71. Text="产品激活" />
  72. <Button
  73. x:Name="btnDown"
  74. Grid.Row="0"
  75. Padding="10,0,10,0"
  76. HorizontalAlignment="Right"
  77. Click="close_click"
  78. Content="×"
  79. Cursor="Hand"
  80. FontSize="30"
  81. Foreground="#FFFFFF" />
  82. </Grid>
  83. <Grid Grid.Row="1" Margin="30,20,30,0">
  84. <Grid.ColumnDefinitions>
  85. <ColumnDefinition Width="Auto" />
  86. <ColumnDefinition Width="*" />
  87. </Grid.ColumnDefinitions>
  88. <TextBlock
  89. Padding="0,0,0,0"
  90. VerticalAlignment="Center"
  91. FontSize="20"
  92. Text="密匙:" />
  93. <TextBox
  94. x:Name="txbKey"
  95. Grid.Column="1"
  96. Height="46"
  97. VerticalAlignment="Center"
  98. VerticalContentAlignment="Center"
  99. FontSize="18"
  100. Foreground="gray"
  101. Text="" />
  102. </Grid>
  103. <Button
  104. x:Name="btnEnd"
  105. Grid.Row="2"
  106. Height="48"
  107. Margin="30,0,30,0"
  108. Click="btnEnd_Click"
  109. Content="验证"
  110. Cursor="Hand"
  111. FontSize="18"
  112. FontWeight="Bold"
  113. Foreground="White"
  114. IsDefault="True">
  115. <Button.Template>
  116. <ControlTemplate TargetType="{x:Type Button}">
  117. <Border
  118. BorderBrush="{TemplateBinding Control.BorderBrush}"
  119. BorderThickness="0"
  120. CornerRadius="3">
  121. <Border.Background>#6098FF</Border.Background>
  122. <ContentPresenter
  123. HorizontalAlignment="Center"
  124. VerticalAlignment="Center"
  125. Content="{TemplateBinding ContentControl.Content}" />
  126. </Border>
  127. </ControlTemplate>
  128. </Button.Template>
  129. </Button>
  130. </Grid>
  131. </Views:ZJClippingBorder>
  132. </Window>