星火微课系统客户端
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

ScreenRecordingToolbarWindow.xaml 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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="300" Width="400" 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. <Viewbox>
  18. <StackPanel>
  19. <Viewbox x:Name="VbxBlue" Visibility="Visible">
  20. <Grid x:Name="gridToobar" MouseLeftButtonDown="Grid_MouseLeftButtonDown">
  21. <Image x:Name="imgCanvas" Visibility="Collapsed"/>
  22. <InkCanvas x:Name="blackboard_canvas" Background="Transparent" Visibility="Collapsed" Grid.RowSpan="2" />
  23. <!--画笔工具栏-->
  24. <Grid x:Name="gridToolbar" Visibility="Collapsed">
  25. <Image Source="./Images/Toobar22.png" HorizontalAlignment="Right"/>
  26. <StackPanel Orientation="Vertical" HorizontalAlignment="Right" Margin="0,5,10,0">
  27. <Button Cursor="Hand" x:Name="btnToolbarDown" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnToolbarDown_Click">
  28. <Image Source="./Images/Toobar5.png"/>
  29. </Button>
  30. <Button Cursor="Hand" x:Name="btnEraser" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnEraser_Click">
  31. <Image Source="./Images/Toobar12.png"/>
  32. </Button>
  33. <Button Cursor="Hand" x:Name="btnPen" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnPen_Click">
  34. <Image Source="./Images/Toobar9.png"/>
  35. </Button>
  36. <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0">
  37. <Image Source="./Images/Toobar16.png"/>
  38. </Button>
  39. <Button Cursor="Hand" x:Name="btnRectangle" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnRectangle_Click">
  40. <Image Source="./Images/Toobar3.png"/>
  41. </Button>
  42. <Button Cursor="Hand" x:Name="btnRound" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnRound_Click">
  43. <Image Source="./Images/Toobar23.png"/>
  44. </Button>
  45. <Button Cursor="Hand" x:Name="btnThickness" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnThickness_Click">
  46. <Image Source="./Images/Toobar1.png"/>
  47. </Button>
  48. <Button Cursor="Hand" x:Name="btnColour" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnColour_Click">
  49. <Image Source="./Images/Toobar18.png"/>
  50. </Button>
  51. </StackPanel>
  52. </Grid>
  53. <!--字体颜色-->
  54. <Grid x:Name="gridColour" Visibility="Collapsed">
  55. <Image Source="./Images/Toobar20.png" HorizontalAlignment="Right" Margin="0,200,62,0"/>
  56. <StackPanel Orientation="Vertical" HorizontalAlignment="Right" Margin="0,215,68,0">
  57. <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"/>
  58. <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"/>
  59. <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"/>
  60. <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"/>
  61. <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"/>
  62. <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"/>
  63. </StackPanel>
  64. </Grid>
  65. <!--字体粗细-->
  66. <Grid x:Name="gridThickness" Visibility="Collapsed">
  67. <Image Source="./Images/Toobar21.png" HorizontalAlignment="Right" Margin="0,200,62,0"/>
  68. <StackPanel Orientation="Vertical" HorizontalAlignment="Right" Margin="0,260,62,0">
  69. <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"/>
  70. <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"/>
  71. <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"/>
  72. </StackPanel>
  73. </Grid>
  74. <Grid x:Name="gridToobarTwo" MouseLeave="gridToobarTwo_MouseLeave">
  75. <Image Source="./Images/Toobar0.png"/>
  76. <StackPanel HorizontalAlignment="Left" Margin="43,25,0,0" VerticalAlignment="Center">
  77. <Button x:Name="BtnRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" ToolTip="开始" Click="BtnRecordingScreen_Click">
  78. <Image x:Name="ImgRecordingScreen" Source="./Images/Toobar26.png"/>
  79. </Button>
  80. <TextBlock x:Name="txbTime" Text="00:00" FontSize="20" Foreground="#FFFFFF" Visibility="Hidden"/>
  81. </StackPanel>
  82. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,15,0">
  83. <!--<Button x:Name="BtnRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,15,0" Click="BtnRecordingScreen_Click">
  84. <Image x:Name="ImgRecordingScreen" Source="./Images/Toobar25.png"/>
  85. </Button>-->
  86. <Button x:Name="BtnStopRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnStopRecordingScreen_Click" ToolTip="停止">
  87. <Border Background="#2d8cf0" CornerRadius="22">
  88. <Image x:Name="ImgEndRecordingScreen" Source="./Images/Toobar15.png" Margin="5,5,5,5"/>
  89. </Border>
  90. </Button>
  91. <Button Cursor="Hand" x:Name="btnBlackPenOne" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnBrush_Click" ToolTip="批注">
  92. <Border x:Name="borOne" Background="#2d8cf0" CornerRadius="22">
  93. <Image x:Name="imgBlackPenOne" Source="./Images/31.png" Margin="5,5,5,5"/>
  94. </Border>
  95. </Button>
  96. <Button Cursor="Hand" x:Name="btnBlackPenTwo" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnBlackPenTwo_Click" ToolTip="批注">
  97. <Border x:Name="borTwo" Background="#2d8cf0" CornerRadius="22">
  98. <Image x:Name="imgBlackPenTwo" Source="./Images/31.png" Margin="5,5,5,5"/>
  99. </Border>
  100. </Button>
  101. <Button Cursor="Hand" x:Name="btnReturn" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,12,0" Click="BtnReturn_Click" ToolTip="返回">
  102. <Border Background="#2d8cf0" CornerRadius="22">
  103. <Image x:Name="imgReturn" Source="./Images/Toobar29.png" Margin="5,5,5,5"/>
  104. </Border>
  105. </Button>
  106. </StackPanel>
  107. </Grid>
  108. </Grid>
  109. </Viewbox>
  110. <Viewbox x:Name="VbxBlack" Visibility="Visible">
  111. <Border x:Name="BorderBlack" BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="10" MouseLeftButtonDown="Grid_MouseLeftButtonDown" MouseLeave="gridToobarTwo_MouseLeave">
  112. <Border.Background>#FF262633</Border.Background>
  113. <Grid x:Name="GridToobar_Black" Height="50" Margin="3" Width="390">
  114. <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="10,0">
  115. <Button Visibility="Collapsed" x:Name="BtnRecordingScreenPause_Black" HorizontalAlignment="Left" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="5" ToolTip="暂停" Click="BtnRecordingScreen_Click">
  116. <Image Source="/BlackImages/SR_Pause.png" />
  117. </Button>
  118. <Button x:Name="BtnRecordingScreen_Black" HorizontalAlignment="Left" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="5" ToolTip="开始" Click="BtnRecordingScreen_Click">
  119. <Image>
  120. <Image.Resources>
  121. <Style TargetType="{x:Type Image}">
  122. <Setter Property="Source" Value="/BlackImages/SR_Start.png"/>
  123. <Style.Triggers>
  124. <Trigger Property="IsMouseOver" Value="True">
  125. <Setter Property="Cursor" Value="Hand"/>
  126. <Setter Property="Source" Value="/BlackImages/SR_Start_MI.png"/>
  127. </Trigger>
  128. </Style.Triggers>
  129. </Style>
  130. </Image.Resources>
  131. </Image>
  132. </Button>
  133. <Button x:Name="BtnStopRecordingScreen_Black" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="5" Click="BtnStopRecordingScreen_Click" ToolTip="停止">
  134. <Image>
  135. <Image.Resources>
  136. <Style TargetType="{x:Type Image}">
  137. <Setter Property="Source" Value="/BlackImages/SR_Stop.png"/>
  138. <Style.Triggers>
  139. <Trigger Property="IsEnabled" Value="False">
  140. <Setter Property="Cursor" Value="Hand"/>
  141. <Setter Property="Source" Value="/BlackImages/SR_Stop_N.png"/>
  142. </Trigger>
  143. </Style.Triggers>
  144. </Style>
  145. </Image.Resources>
  146. </Image>
  147. </Button>
  148. <TextBlock Text="|" FontSize="30" Foreground="#FF48555A" Margin="5,0" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  149. <TextBlock x:Name="txbTime_Black" Text="00:00" FontSize="40" Foreground="#FFFFFF" Margin="5,0" Visibility="Visible" FontFamily="/星火微课;component/Resources/#Quartz" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  150. <TextBlock Text="|" FontSize="30" Foreground="#FF48555A" Margin="5,0" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  151. <Button Cursor="Hand" x:Name="btnBlackPenOne_Black" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="5" Click="BtnBrush_Click" ToolTip="批注">
  152. <Image>
  153. <Image.Resources>
  154. <Style TargetType="{x:Type Image}">
  155. <Setter Property="Source" Value="/BlackImages/SR_PenBlue.png"/>
  156. <Style.Triggers>
  157. <Trigger Property="IsEnabled" Value="False">
  158. <Setter Property="Cursor" Value="Hand"/>
  159. <Setter Property="Source" Value="/BlackImages/SR_Pen_N.png"/>
  160. </Trigger>
  161. </Style.Triggers>
  162. </Style>
  163. </Image.Resources>
  164. </Image>
  165. </Button>
  166. <Button Cursor="Hand" x:Name="btnBlackPenTwo_Black" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="5" Click="BtnBlackPenTwo_Click" ToolTip="批注">
  167. <Image>
  168. <Image.Resources>
  169. <Style TargetType="{x:Type Image}">
  170. <Setter Property="Source" Value="/BlackImages/SR_PenRed.png"/>
  171. <Style.Triggers>
  172. <Trigger Property="IsEnabled" Value="False">
  173. <Setter Property="Cursor" Value="Hand"/>
  174. <Setter Property="Source" Value="/BlackImages/SR_Pen_N.png"/>
  175. </Trigger>
  176. </Style.Triggers>
  177. </Style>
  178. </Image.Resources>
  179. </Image>
  180. </Button>
  181. <Button Cursor="Hand" x:Name="btnReturn_Black" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="5" Click="BtnReturn_Click" ToolTip="返回">
  182. <Image>
  183. <Image.Resources>
  184. <Style TargetType="{x:Type Image}">
  185. <Setter Property="Source" Value="/BlackImages/SR_Out.png"/>
  186. <Style.Triggers>
  187. <Trigger Property="IsEnabled" Value="False">
  188. <Setter Property="Cursor" Value="Hand"/>
  189. <Setter Property="Source" Value="/BlackImages/SR_Out_N.png"/>
  190. </Trigger>
  191. </Style.Triggers>
  192. </Style>
  193. </Image.Resources>
  194. </Image>
  195. </Button>
  196. </StackPanel>
  197. </Grid>
  198. </Border>
  199. </Viewbox>
  200. </StackPanel>
  201. </Viewbox>
  202. </Grid>
  203. </Window>