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

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