星火微课系统客户端
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ScreenRecordingToolbarWindow.xaml 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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="450" Width="300" AllowsTransparency="True"
  9. ShowInTaskbar="False"
  10. WindowStartupLocation="CenterOwner"
  11. WindowStyle="None" Margin="0" Left="0" Top="0">
  12. <Window.Background>
  13. <SolidColorBrush Opacity="0" Color="#292C2E" />
  14. </Window.Background>
  15. <Viewbox>
  16. <Grid MouseLeftButtonDown="Grid_MouseLeftButtonDown">
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="auto"/>
  19. <RowDefinition Height="auto"/>
  20. </Grid.RowDefinitions>
  21. <Image x:Name="imgCanvas" Visibility="Collapsed"/>
  22. <InkCanvas Grid.Row="0" x:Name="blackboard_canvas" Background="Transparent" Visibility="Collapsed" Grid.RowSpan="2" />
  23. <!--画笔工具栏-->
  24. <Grid Grid.Row="0" x:Name="gridToolbar" Visibility="Collapsed">
  25. <Image Grid.Row="0" Source="./Images/Toobar22.png" HorizontalAlignment="Right"/>
  26. <StackPanel Grid.Row="0" 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 Grid.Row="0" 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 Grid.Row="0" x:Name="gridThickness" Visibility="Collapsed">
  67. <Image Grid.Row="0" Source="./Images/Toobar21.png" HorizontalAlignment="Right" Margin="0,200,62,0"/>
  68. <StackPanel Grid.Row="0" 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. <Image Grid.Row="1" Source="./Images/Toobar0.png"/>
  75. <Button Grid.Row="1" x:Name="BtnRecordingScreen" HorizontalAlignment="Left" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="46,0,15,0" Click="BtnRecordingScreen_Click">
  76. <Image x:Name="ImgRecordingScreen" Source="./Images/Toobar25.png"/>
  77. </Button>
  78. <TextBlock Grid.Row="1" x:Name="txbTime" Text="00:00" FontSize="20" Foreground="#FFFFFF" Margin="39,80,0,0" Visibility="Hidden"/>
  79. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,15,0">
  80. <!--<Button x:Name="BtnRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,15,0" Click="BtnRecordingScreen_Click">
  81. <Image x:Name="ImgRecordingScreen" Source="./Images/Toobar25.png"/>
  82. </Button>-->
  83. <Button x:Name="BtnStopRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnStopRecordingScreen_Click">
  84. <Image x:Name="ImgEndRecordingScreen" Source="./Images/Toobar14.png"/>
  85. </Button>
  86. <Button Cursor="Hand" x:Name="btnBlackPenOne" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnBlackPen_Click">
  87. <Image Source="./Images/Toobar27.png"/>
  88. </Button>
  89. <Button Cursor="Hand" x:Name="btnBlackPenTwo" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnBlackPen_Click">
  90. <Image Source="./Images/Toobar28.png"/>
  91. </Button>
  92. <Button Cursor="Hand" x:Name="btnBlackPen" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnBlackPen_Click">
  93. <Image Source="./Images/Toobar29.png"/>
  94. </Button>
  95. </StackPanel>
  96. </Grid>
  97. </Viewbox>
  98. </Window>