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

ScreenRecordingToolbarWindow.xaml 13KB

4 years ago
4 years ago
11 months ago
11 months ago
11 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <Window
  2. x:Class="XHWK.WKTool.ScreenRecordingToolbarWindow"
  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="ScreenRecordingToolbarWindow"
  8. Width="420"
  9. Height="58"
  10. Margin="0"
  11. AllowsTransparency="True"
  12. Left="0"
  13. ShowInTaskbar="False"
  14. Top="0"
  15. Topmost="True"
  16. WindowStyle="None"
  17. mc:Ignorable="d">
  18. <Window.Background>
  19. <SolidColorBrush Opacity="0" Color="#292C2E" />
  20. </Window.Background>
  21. <Grid>
  22. <Grid
  23. x:Name="GridSrToobar"
  24. MouseLeave="gridToobarTwo_MouseLeave"
  25. Visibility="Visible">
  26. <Grid.ColumnDefinitions>
  27. <ColumnDefinition Width="60" />
  28. <ColumnDefinition Width="360" />
  29. </Grid.ColumnDefinitions>
  30. <Border
  31. Grid.ColumnSpan="2"
  32. Background="White"
  33. BorderBrush="#FF638AFF"
  34. BorderThickness="3,3,0,3"
  35. CornerRadius="29 0 0 29" />
  36. <!-- 开始暂停 -->
  37. <Grid Grid.Column="0">
  38. <Button
  39. x:Name="BtnRecordingScreen"
  40. Click="BtnRecordingScreen_Click"
  41. Cursor="Hand"
  42. ToolTip="开始"
  43. Visibility="Visible">
  44. <Button.Template>
  45. <ControlTemplate TargetType="{x:Type Button}">
  46. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_Start.png" />
  47. <ControlTemplate.Triggers>
  48. <Trigger Property="IsMouseOver" Value="True">
  49. <Setter TargetName="BtnImages" Property="Opacity" Value="0.6" />
  50. </Trigger>
  51. <Trigger Property="IsPressed" Value="True">
  52. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Start.png" />
  53. </Trigger>
  54. <Trigger Property="IsEnabled" Value="False">
  55. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Start.png" />
  56. </Trigger>
  57. </ControlTemplate.Triggers>
  58. </ControlTemplate>
  59. </Button.Template>
  60. </Button>
  61. <Button
  62. x:Name="BtnRecordingScreenPause"
  63. Click="BtnRecordingScreen_Click"
  64. Cursor="Hand"
  65. ToolTip="暂停"
  66. Visibility="Collapsed">
  67. <Button.Template>
  68. <ControlTemplate TargetType="{x:Type Button}">
  69. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_Pause.png" />
  70. <ControlTemplate.Triggers>
  71. <Trigger Property="IsMouseOver" Value="True">
  72. <Setter TargetName="BtnImages" Property="Opacity" Value="0.6" />
  73. </Trigger>
  74. <Trigger Property="IsPressed" Value="True">
  75. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Pause.png" />
  76. </Trigger>
  77. <Trigger Property="IsEnabled" Value="False">
  78. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Pause.png" />
  79. </Trigger>
  80. </ControlTemplate.Triggers>
  81. </ControlTemplate>
  82. </Button.Template>
  83. </Button>
  84. </Grid>
  85. <!-- 其他按钮 -->
  86. <Grid Grid.Column="1">
  87. <Grid.RowDefinitions>
  88. <RowDefinition Height="10*" />
  89. <RowDefinition Height="38*" />
  90. <RowDefinition Height="10*" />
  91. </Grid.RowDefinitions>
  92. <Grid.ColumnDefinitions>
  93. <ColumnDefinition Width="10" />
  94. <ColumnDefinition Width="38" />
  95. <ColumnDefinition Width="20" />
  96. <ColumnDefinition Width="*" />
  97. <ColumnDefinition Width="20" />
  98. <ColumnDefinition Width="38" />
  99. <ColumnDefinition Width="6" />
  100. <ColumnDefinition Width="38" />
  101. <ColumnDefinition Width="20" />
  102. <ColumnDefinition Width="38" />
  103. <ColumnDefinition Width="10" />
  104. </Grid.ColumnDefinitions>
  105. <Grid Grid.Row="1" Grid.Column="1">
  106. <!-- 停止 -->
  107. <Button
  108. x:Name="BtnStopRecordingScreen"
  109. Click="BtnStopRecordingScreen_Click"
  110. Cursor="Hand"
  111. ToolTip="停止">
  112. <Button.Template>
  113. <ControlTemplate TargetType="{x:Type Button}">
  114. <Image
  115. x:Name="BtnImages"
  116. Width="24"
  117. Source="/SkinImages/SR/SR_Stop.png" />
  118. <ControlTemplate.Triggers>
  119. <Trigger Property="IsMouseOver" Value="True">
  120. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  121. </Trigger>
  122. <Trigger Property="IsEnabled" Value="False">
  123. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  124. </Trigger>
  125. </ControlTemplate.Triggers>
  126. </ControlTemplate>
  127. </Button.Template>
  128. </Button>
  129. </Grid>
  130. <Grid Grid.Row="1" Grid.Column="2">
  131. <Grid.RowDefinitions>
  132. <RowDefinition Height="9*" />
  133. <RowDefinition Height="20*" />
  134. <RowDefinition Height="9*" />
  135. </Grid.RowDefinitions>
  136. <Label
  137. Grid.Row="1"
  138. Width="2"
  139. Margin="0"
  140. Padding="5"
  141. Background="#FF638AFF" />
  142. </Grid>
  143. <Grid
  144. Grid.Row="0"
  145. Grid.RowSpan="3"
  146. Grid.Column="3">
  147. <Label
  148. x:Name="TxbTime"
  149. Padding="0"
  150. HorizontalContentAlignment="Center"
  151. VerticalContentAlignment="Center"
  152. Content="00:00:00"
  153. FontFamily="/星火微课;component/Resources/#Quartz"
  154. FontSize="36"
  155. Foreground="#FF3F6FFF"
  156. Visibility="Visible" />
  157. </Grid>
  158. <Grid Grid.Row="1" Grid.Column="4">
  159. <Grid.RowDefinitions>
  160. <RowDefinition Height="9*" />
  161. <RowDefinition Height="20*" />
  162. <RowDefinition Height="9*" />
  163. </Grid.RowDefinitions>
  164. <Label
  165. Grid.Row="1"
  166. Width="2"
  167. Margin="0"
  168. Padding="5"
  169. Background="#FF638AFF" />
  170. </Grid>
  171. <Grid Grid.Row="1" Grid.Column="5">
  172. <!-- 蓝笔 -->
  173. <Button
  174. x:Name="BtnPenBlue"
  175. Click="BtnBrush_Click"
  176. Cursor="Hand"
  177. ToolTip="蓝笔">
  178. <Button.Template>
  179. <ControlTemplate TargetType="{x:Type Button}">
  180. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenBlue.png" />
  181. <ControlTemplate.Triggers>
  182. <Trigger Property="IsMouseOver" Value="True">
  183. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  184. </Trigger>
  185. <Trigger Property="IsEnabled" Value="False">
  186. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  187. </Trigger>
  188. </ControlTemplate.Triggers>
  189. </ControlTemplate>
  190. </Button.Template>
  191. </Button>
  192. <!-- 选中 -->
  193. <Button
  194. x:Name="BtnPenBlueCl"
  195. Click="BtnBrush_Click"
  196. Cursor="Hand"
  197. ToolTip="蓝笔"
  198. Visibility="Collapsed">
  199. <Button.Template>
  200. <ControlTemplate TargetType="{x:Type Button}">
  201. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenBlue.png" />
  202. </ControlTemplate>
  203. </Button.Template>
  204. </Button>
  205. </Grid>
  206. <Grid Grid.Row="1" Grid.Column="7">
  207. <!-- 红笔 -->
  208. <Button
  209. x:Name="BtnPenRed"
  210. Click="BtnBlackPenTwo_Click"
  211. Cursor="Hand"
  212. ToolTip="红笔">
  213. <Button.Template>
  214. <ControlTemplate TargetType="{x:Type Button}">
  215. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenRed.png" />
  216. <ControlTemplate.Triggers>
  217. <Trigger Property="IsMouseOver" Value="True">
  218. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  219. </Trigger>
  220. <Trigger Property="IsEnabled" Value="False">
  221. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  222. </Trigger>
  223. </ControlTemplate.Triggers>
  224. </ControlTemplate>
  225. </Button.Template>
  226. </Button>
  227. <!-- 选中 -->
  228. <Button
  229. x:Name="BtnPenRedCl"
  230. Click="BtnBlackPenTwo_Click"
  231. Cursor="Hand"
  232. ToolTip="批注"
  233. Visibility="Collapsed">
  234. <Button.Template>
  235. <ControlTemplate TargetType="{x:Type Button}">
  236. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenRed.png" />
  237. </ControlTemplate>
  238. </Button.Template>
  239. </Button>
  240. </Grid>
  241. <Grid Grid.Row="1" Grid.Column="8">
  242. <Grid.RowDefinitions>
  243. <RowDefinition Height="9*" />
  244. <RowDefinition Height="20*" />
  245. <RowDefinition Height="9*" />
  246. </Grid.RowDefinitions>
  247. <Label
  248. Grid.Row="1"
  249. Width="2"
  250. Margin="0"
  251. Padding="5"
  252. Background="#FF638AFF" />
  253. </Grid>
  254. <Grid Grid.Row="1" Grid.Column="9">
  255. <!-- 返回 -->
  256. <Button
  257. x:Name="BtnReturn"
  258. Click="BtnReturn_Click"
  259. Cursor="Hand"
  260. ToolTip="返回">
  261. <Button.Template>
  262. <ControlTemplate TargetType="{x:Type Button}">
  263. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_Out.png" />
  264. <ControlTemplate.Triggers>
  265. <Trigger Property="IsMouseOver" Value="True">
  266. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  267. </Trigger>
  268. <Trigger Property="IsEnabled" Value="False">
  269. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  270. </Trigger>
  271. </ControlTemplate.Triggers>
  272. </ControlTemplate>
  273. </Button.Template>
  274. </Button>
  275. </Grid>
  276. </Grid>
  277. </Grid>
  278. </Grid>
  279. </Window>