星火微课系统客户端
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 5.9KB

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