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

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