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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <Window x:Class="XHWK.WKTool.ScreenRecordingToolbarWindow"
  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. mc:Ignorable="d"
  8. Title="ScreenRecordingToolbarWindow" Height="58" Width="423" AllowsTransparency="True"
  9. Topmost="True"
  10. ShowInTaskbar="False"
  11. WindowStartupLocation="CenterOwner"
  12. WindowStyle="None" Margin="0" Left="0" Top="0">
  13. <Window.Background>
  14. <SolidColorBrush Opacity="0" Color="#292C2E" />
  15. </Window.Background>
  16. <Grid>
  17. <Grid x:Name="GridSrToobar" Visibility="Visible" MouseLeftButtonDown="Grid_MouseLeftButtonDown" MouseLeave="gridToobarTwo_MouseLeave">
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="56*"/>
  20. <ColumnDefinition Width="361*"/>
  21. </Grid.ColumnDefinitions>
  22. <Border Grid.ColumnSpan="2" Background="White" BorderBrush="#FF638AFF" BorderThickness="3" CornerRadius="29"/>
  23. <!--开始暂停-->
  24. <Grid Grid.Column="0">
  25. <Button Visibility="Visible" x:Name="BtnRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" ToolTip="开始" Click="BtnRecordingScreen_Click">
  26. <Button.Template>
  27. <ControlTemplate TargetType="{x:Type Button}">
  28. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_Start.png" />
  29. <ControlTemplate.Triggers>
  30. <Trigger Property="IsMouseOver" Value="True">
  31. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Start_MI.png"/>
  32. </Trigger>
  33. <Trigger Property="IsPressed" Value="True">
  34. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Start.png"/>
  35. </Trigger>
  36. <Trigger Property="IsEnabled" Value="False">
  37. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Start.png"/>
  38. </Trigger>
  39. </ControlTemplate.Triggers>
  40. </ControlTemplate>
  41. </Button.Template>
  42. </Button>
  43. <Button Visibility="Collapsed" x:Name="BtnRecordingScreenPause" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" ToolTip="暂停" Click="BtnRecordingScreen_Click">
  44. <Button.Template>
  45. <ControlTemplate TargetType="{x:Type Button}">
  46. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_Pause.png" />
  47. <ControlTemplate.Triggers>
  48. <Trigger Property="IsMouseOver" Value="True">
  49. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Pause_MI.png"/>
  50. </Trigger>
  51. <Trigger Property="IsPressed" Value="True">
  52. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Pause.png"/>
  53. </Trigger>
  54. <Trigger Property="IsEnabled" Value="False">
  55. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Pause.png"/>
  56. </Trigger>
  57. </ControlTemplate.Triggers>
  58. </ControlTemplate>
  59. </Button.Template>
  60. </Button>
  61. </Grid>
  62. <!--其他按钮-->
  63. <Grid Grid.Column="1">
  64. <Grid.RowDefinitions>
  65. <RowDefinition Height="10*"/>
  66. <RowDefinition Height="38*"/>
  67. <RowDefinition Height="10*"/>
  68. </Grid.RowDefinitions>
  69. <Grid.ColumnDefinitions>
  70. <ColumnDefinition Width="10*"/>
  71. <ColumnDefinition Width="38*"/>
  72. <ColumnDefinition Width="28*"/>
  73. <ColumnDefinition Width="92*"/>
  74. <ColumnDefinition Width="28*"/>
  75. <ColumnDefinition Width="38*"/>
  76. <ColumnDefinition Width="4*"/>
  77. <ColumnDefinition Width="38*"/>
  78. <ColumnDefinition Width="28*"/>
  79. <ColumnDefinition Width="38*"/>
  80. <ColumnDefinition Width="17*"/>
  81. </Grid.ColumnDefinitions>
  82. <Grid Grid.Row="1" Grid.Column="1">
  83. <!--停止-->
  84. <Button x:Name="BtnStopRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnStopRecordingScreen_Click" ToolTip="停止">
  85. <Button.Template>
  86. <ControlTemplate TargetType="{x:Type Button}">
  87. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_Stop.png" />
  88. <ControlTemplate.Triggers>
  89. <Trigger Property="IsMouseOver" Value="True">
  90. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Stop_MI.png"/>
  91. </Trigger>
  92. <Trigger Property="IsPressed" Value="True">
  93. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Stop.png"/>
  94. </Trigger>
  95. <Trigger Property="IsEnabled" Value="False">
  96. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Stop_N.png"/>
  97. </Trigger>
  98. </ControlTemplate.Triggers>
  99. </ControlTemplate>
  100. </Button.Template>
  101. </Button>
  102. </Grid>
  103. <Grid Grid.Row="1" Grid.Column="2">
  104. <Grid.RowDefinitions>
  105. <RowDefinition Height="9*"/>
  106. <RowDefinition Height="20*"/>
  107. <RowDefinition Height="9*"/>
  108. </Grid.RowDefinitions>
  109. <Label Grid.Row="1" Background="#FF638AFF" Width="2" Padding="5" Margin="0"/>
  110. </Grid>
  111. <Grid Grid.Row="0" Grid.Column="3" Grid.RowSpan="3" >
  112. <Label x:Name="TxbTime" Content="00:00" FontSize="36" Foreground="#FF3F6FFF" Visibility="Visible" FontFamily="/星火微课;component/Resources/#Quartz" Padding="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1"/>
  113. </Grid>
  114. <Grid Grid.Row="1" Grid.Column="4">
  115. <Grid.RowDefinitions>
  116. <RowDefinition Height="9*"/>
  117. <RowDefinition Height="20*"/>
  118. <RowDefinition Height="9*"/>
  119. </Grid.RowDefinitions>
  120. <Label Grid.Row="1" Background="#FF638AFF" Width="2" Padding="5" Margin="0"/>
  121. </Grid>
  122. <Grid Grid.Row="1" Grid.Column="5">
  123. <!--蓝笔-->
  124. <Button x:Name="BtnPenBlue" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnBrush_Click" ToolTip="批注">
  125. <Button.Template>
  126. <ControlTemplate TargetType="{x:Type Button}">
  127. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenBlue.png" />
  128. <ControlTemplate.Triggers>
  129. <Trigger Property="IsMouseOver" Value="True">
  130. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_PenBlue_MI.png"/>
  131. </Trigger>
  132. <Trigger Property="IsPressed" Value="True">
  133. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_PenBlue_CL.png"/>
  134. </Trigger>
  135. <Trigger Property="IsEnabled" Value="False">
  136. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_PenBlue_N.png"/>
  137. </Trigger>
  138. </ControlTemplate.Triggers>
  139. </ControlTemplate>
  140. </Button.Template>
  141. </Button>
  142. <!--选中-->
  143. <Button x:Name="BtnPenBlue_CL" Visibility="Collapsed" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnBrush_Click" ToolTip="批注">
  144. <Button.Template>
  145. <ControlTemplate TargetType="{x:Type Button}">
  146. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenBlue_CL.png" />
  147. </ControlTemplate>
  148. </Button.Template>
  149. </Button>
  150. </Grid>
  151. <Grid Grid.Row="1" Grid.Column="7">
  152. <!--红笔-->
  153. <Button x:Name="BtnPenRed" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnBlackPenTwo_Click" ToolTip="批注">
  154. <Button.Template>
  155. <ControlTemplate TargetType="{x:Type Button}">
  156. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenRed.png" />
  157. <ControlTemplate.Triggers>
  158. <Trigger Property="IsMouseOver" Value="True">
  159. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_PenRed_MI.png"/>
  160. </Trigger>
  161. <Trigger Property="IsPressed" Value="True">
  162. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_PenRed_CL.png"/>
  163. </Trigger>
  164. <Trigger Property="IsEnabled" Value="False">
  165. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_PenRed_N.png"/>
  166. </Trigger>
  167. </ControlTemplate.Triggers>
  168. </ControlTemplate>
  169. </Button.Template>
  170. </Button>
  171. <!--选中-->
  172. <Button x:Name="BtnPenRed_CL" Visibility="Collapsed" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnBlackPenTwo_Click" ToolTip="批注">
  173. <Button.Template>
  174. <ControlTemplate TargetType="{x:Type Button}">
  175. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenRed_CL.png" />
  176. </ControlTemplate>
  177. </Button.Template>
  178. </Button>
  179. </Grid>
  180. <Grid Grid.Row="1" Grid.Column="8">
  181. <Grid.RowDefinitions>
  182. <RowDefinition Height="9*"/>
  183. <RowDefinition Height="20*"/>
  184. <RowDefinition Height="9*"/>
  185. </Grid.RowDefinitions>
  186. <Label Grid.Row="1" Background="#FF638AFF" Width="2" Padding="5" Margin="0"/>
  187. </Grid>
  188. <Grid Grid.Row="1" Grid.Column="9">
  189. <!--返回-->
  190. <Button x:Name="BtnReturn" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnReturn_Click" ToolTip="返回">
  191. <Button.Template>
  192. <ControlTemplate TargetType="{x:Type Button}">
  193. <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_Out.png" />
  194. <ControlTemplate.Triggers>
  195. <Trigger Property="IsMouseOver" Value="True">
  196. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Out_MI.png"/>
  197. </Trigger>
  198. <Trigger Property="IsEnabled" Value="False">
  199. <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Out_N.png"/>
  200. </Trigger>
  201. </ControlTemplate.Triggers>
  202. </ControlTemplate>
  203. </Button.Template>
  204. </Button>
  205. </Grid>
  206. </Grid>
  207. </Grid>
  208. <Viewbox Visibility="Collapsed">
  209. <StackPanel>
  210. <Viewbox Visibility="Collapsed">
  211. <Grid x:Name="gridToobar" MouseLeftButtonDown="Grid_MouseLeftButtonDown">
  212. <Image x:Name="imgCanvas" Visibility="Collapsed"/>
  213. <InkCanvas x:Name="blackboard_canvas" Background="Transparent" Visibility="Collapsed" Grid.RowSpan="2" />
  214. <!--画笔工具栏-->
  215. <Grid x:Name="gridToolbar" Visibility="Collapsed">
  216. <Image Source="./Images/Toobar22.png" HorizontalAlignment="Right"/>
  217. <StackPanel Orientation="Vertical" HorizontalAlignment="Right" Margin="0,5,10,0">
  218. <Button Cursor="Hand" x:Name="btnToolbarDown" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnToolbarDown_Click">
  219. <Image Source="./Images/Toobar5.png"/>
  220. </Button>
  221. <Button Cursor="Hand" x:Name="btnEraser" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnEraser_Click">
  222. <Image Source="./Images/Toobar12.png"/>
  223. </Button>
  224. <Button Cursor="Hand" x:Name="btnPen" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnPen_Click">
  225. <Image Source="./Images/Toobar9.png"/>
  226. </Button>
  227. <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0">
  228. <Image Source="./Images/Toobar16.png"/>
  229. </Button>
  230. <Button Cursor="Hand" x:Name="btnRectangle" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnRectangle_Click">
  231. <Image Source="./Images/Toobar3.png"/>
  232. </Button>
  233. <Button Cursor="Hand" x:Name="btnRound" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnRound_Click">
  234. <Image Source="./Images/Toobar23.png"/>
  235. </Button>
  236. <Button Cursor="Hand" x:Name="btnThickness" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnThickness_Click">
  237. <Image Source="./Images/Toobar1.png"/>
  238. </Button>
  239. <Button Cursor="Hand" x:Name="btnColour" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnColour_Click">
  240. <Image Source="./Images/Toobar18.png"/>
  241. </Button>
  242. </StackPanel>
  243. </Grid>
  244. <!--字体颜色-->
  245. <Grid x:Name="gridColour" Visibility="Collapsed">
  246. <Image Source="./Images/Toobar20.png" HorizontalAlignment="Right" Margin="0,200,62,0"/>
  247. <StackPanel Orientation="Vertical" HorizontalAlignment="Right" Margin="0,215,68,0">
  248. <Button Cursor="Hand" x:Name="btnWhite" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Background="#FFFFFF" Height="15" Width="15" Margin="0,0,0,0" Click="BtnWhite_Click"/>
  249. <Button Cursor="Hand" x:Name="btnRed" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Background="#FF0000" Height="15" Width="15" Margin="0,8,0,0" Click="BtnRed_Click"/>
  250. <Button Cursor="Hand" x:Name="btnGray" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Background="#A7A9AC" Height="15" Width="15" Margin="0,8,0,0" Click="BtnGray_Click"/>
  251. <Button Cursor="Hand" x:Name="btnCyanBlue" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Background="#63D600" Height="15" Width="15" Margin="0,8,0,0" Click="BtnCyanBlue_Click"/>
  252. <Button Cursor="Hand" x:Name="btnYellow" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Background="#FFBC00" Height="15" Width="15" Margin="0,8,0,0" Click="BtnYellow_Click"/>
  253. <Button Cursor="Hand" x:Name="btnBlue" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Background="#00B4FC" Height="15" Width="15" Margin="0,8,0,0" Click="BtnBlue_Click"/>
  254. </StackPanel>
  255. </Grid>
  256. <!--字体粗细-->
  257. <Grid x:Name="gridThickness" Visibility="Collapsed">
  258. <Image Source="./Images/Toobar21.png" HorizontalAlignment="Right" Margin="0,200,62,0"/>
  259. <StackPanel Orientation="Vertical" HorizontalAlignment="Right" Margin="0,260,62,0">
  260. <Button Cursor="Hand" x:Name="btnFine" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Background="#FFFFFF" Height="3" Width="20" Margin="0,0,0,0" Click="BtnFine_Click"/>
  261. <Button Cursor="Hand" x:Name="btnIn" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Background="#FFFFFF" Height="5" Width="20" Margin="0,10,0,0" Click="BtnIn_Click"/>
  262. <Button Cursor="Hand" x:Name="btnCrude" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Background="#FFFFFF" Height="10" Width="20" Margin="0,10,0,0" Click="BtnCrude_Click"/>
  263. </StackPanel>
  264. </Grid>
  265. </Grid>
  266. </Viewbox>
  267. </StackPanel>
  268. </Viewbox>
  269. </Grid>
  270. </Window>