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

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. 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. Grid.Column="1"
  150. Padding="0"
  151. HorizontalContentAlignment="Center"
  152. VerticalContentAlignment="Center"
  153. Content="00:00:00"
  154. FontFamily="/星火微课;component/Resources/#Quartz"
  155. FontSize="36"
  156. Foreground="#FF3F6FFF"
  157. Visibility="Visible" />
  158. </Grid>
  159. <Grid Grid.Row="1" Grid.Column="4">
  160. <Grid.RowDefinitions>
  161. <RowDefinition Height="9*" />
  162. <RowDefinition Height="20*" />
  163. <RowDefinition Height="9*" />
  164. </Grid.RowDefinitions>
  165. <Label
  166. Grid.Row="1"
  167. Width="2"
  168. Margin="0"
  169. Padding="5"
  170. Background="#FF638AFF" />
  171. </Grid>
  172. <Grid Grid.Row="1" Grid.Column="5">
  173. <!-- 蓝笔 -->
  174. <Button
  175. x:Name="BtnPenBlue"
  176. Click="BtnBrush_Click"
  177. Cursor="Hand"
  178. ToolTip="蓝笔">
  179. <Button.Template>
  180. <ControlTemplate TargetType="{x:Type Button}">
  181. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenBlue.png" />
  182. <ControlTemplate.Triggers>
  183. <Trigger Property="IsMouseOver" Value="True">
  184. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  185. </Trigger>
  186. <Trigger Property="IsEnabled" Value="False">
  187. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  188. </Trigger>
  189. </ControlTemplate.Triggers>
  190. </ControlTemplate>
  191. </Button.Template>
  192. </Button>
  193. <!-- 选中 -->
  194. <Button
  195. x:Name="BtnPenBlue_CL"
  196. Click="BtnBrush_Click"
  197. Cursor="Hand"
  198. ToolTip="批注"
  199. Visibility="Collapsed">
  200. <Button.Template>
  201. <ControlTemplate TargetType="{x:Type Button}">
  202. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenBlue.png" />
  203. </ControlTemplate>
  204. </Button.Template>
  205. </Button>
  206. </Grid>
  207. <Grid Grid.Row="1" Grid.Column="7">
  208. <!-- 红笔 -->
  209. <Button
  210. x:Name="BtnPenRed"
  211. Click="BtnBlackPenTwo_Click"
  212. Cursor="Hand"
  213. ToolTip="批注">
  214. <Button.Template>
  215. <ControlTemplate TargetType="{x:Type Button}">
  216. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenRed.png" />
  217. <ControlTemplate.Triggers>
  218. <Trigger Property="IsMouseOver" Value="True">
  219. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  220. </Trigger>
  221. <Trigger Property="IsEnabled" Value="False">
  222. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  223. </Trigger>
  224. </ControlTemplate.Triggers>
  225. </ControlTemplate>
  226. </Button.Template>
  227. </Button>
  228. <!-- 选中 -->
  229. <Button
  230. x:Name="BtnPenRed_CL"
  231. Click="BtnBlackPenTwo_Click"
  232. Cursor="Hand"
  233. ToolTip="批注"
  234. Visibility="Collapsed">
  235. <Button.Template>
  236. <ControlTemplate TargetType="{x:Type Button}">
  237. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenRed.png" />
  238. </ControlTemplate>
  239. </Button.Template>
  240. </Button>
  241. </Grid>
  242. <Grid Grid.Row="1" Grid.Column="8">
  243. <Grid.RowDefinitions>
  244. <RowDefinition Height="9*" />
  245. <RowDefinition Height="20*" />
  246. <RowDefinition Height="9*" />
  247. </Grid.RowDefinitions>
  248. <Label
  249. Grid.Row="1"
  250. Width="2"
  251. Margin="0"
  252. Padding="5"
  253. Background="#FF638AFF" />
  254. </Grid>
  255. <Grid Grid.Row="1" Grid.Column="9">
  256. <!-- 返回 -->
  257. <Button
  258. x:Name="BtnReturn"
  259. Click="BtnReturn_Click"
  260. Cursor="Hand"
  261. ToolTip="返回">
  262. <Button.Template>
  263. <ControlTemplate TargetType="{x:Type Button}">
  264. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_Out.png" />
  265. <ControlTemplate.Triggers>
  266. <Trigger Property="IsMouseOver" Value="True">
  267. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  268. </Trigger>
  269. <Trigger Property="IsEnabled" Value="False">
  270. <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
  271. </Trigger>
  272. </ControlTemplate.Triggers>
  273. </ControlTemplate>
  274. </Button.Template>
  275. </Button>
  276. </Grid>
  277. </Grid>
  278. </Grid>
  279. </Grid>
  280. </Window>