星火微课系统客户端
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

ScreenRecordingToolbarWindow.xaml 8.8KB

4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. 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. <Viewbox>
  17. <Grid x:Name="gridToobar" MouseLeftButtonDown="Grid_MouseLeftButtonDown">
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="auto"/>
  20. <RowDefinition Height="auto"/>
  21. </Grid.RowDefinitions>
  22. <Image x:Name="imgCanvas" Visibility="Collapsed"/>
  23. <InkCanvas Grid.Row="0" x:Name="blackboard_canvas" Background="Transparent" Visibility="Collapsed" Grid.RowSpan="2" />
  24. <!--画笔工具栏-->
  25. <Grid Grid.Row="0" x:Name="gridToolbar" Visibility="Collapsed">
  26. <Image Grid.Row="0" Source="./Images/Toobar22.png" HorizontalAlignment="Right"/>
  27. <StackPanel Grid.Row="0" Orientation="Vertical" HorizontalAlignment="Right" Margin="0,5,10,0">
  28. <Button Cursor="Hand" x:Name="btnToolbarDown" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnToolbarDown_Click">
  29. <Image Source="./Images/Toobar5.png"/>
  30. </Button>
  31. <Button Cursor="Hand" x:Name="btnEraser" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnEraser_Click">
  32. <Image Source="./Images/Toobar12.png"/>
  33. </Button>
  34. <Button Cursor="Hand" x:Name="btnPen" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnPen_Click">
  35. <Image Source="./Images/Toobar9.png"/>
  36. </Button>
  37. <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0">
  38. <Image Source="./Images/Toobar16.png"/>
  39. </Button>
  40. <Button Cursor="Hand" x:Name="btnRectangle" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnRectangle_Click">
  41. <Image Source="./Images/Toobar3.png"/>
  42. </Button>
  43. <Button Cursor="Hand" x:Name="btnRound" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnRound_Click">
  44. <Image Source="./Images/Toobar23.png"/>
  45. </Button>
  46. <Button Cursor="Hand" x:Name="btnThickness" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnThickness_Click">
  47. <Image Source="./Images/Toobar1.png"/>
  48. </Button>
  49. <Button Cursor="Hand" x:Name="btnColour" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,5,0,0" Click="BtnColour_Click">
  50. <Image Source="./Images/Toobar18.png"/>
  51. </Button>
  52. </StackPanel>
  53. </Grid>
  54. <!--字体颜色-->
  55. <Grid Grid.Row="0" x:Name="gridColour" Visibility="Collapsed">
  56. <Image Source="./Images/Toobar20.png" HorizontalAlignment="Right" Margin="0,200,62,0"/>
  57. <StackPanel Orientation="Vertical" HorizontalAlignment="Right" Margin="0,215,68,0">
  58. <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"/>
  59. <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"/>
  60. <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"/>
  61. <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"/>
  62. <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"/>
  63. <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"/>
  64. </StackPanel>
  65. </Grid>
  66. <!--字体粗细-->
  67. <Grid Grid.Row="0" x:Name="gridThickness" Visibility="Collapsed">
  68. <Image Grid.Row="0" Source="./Images/Toobar21.png" HorizontalAlignment="Right" Margin="0,200,62,0"/>
  69. <StackPanel Grid.Row="0" Orientation="Vertical" HorizontalAlignment="Right" Margin="0,260,62,0">
  70. <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"/>
  71. <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"/>
  72. <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"/>
  73. </StackPanel>
  74. </Grid>
  75. <Grid Grid.Row="1" x:Name="gridToobarTwo" MouseLeave="gridToobarTwo_MouseLeave">
  76. <Image Grid.Row="1" Source="./Images/Toobar0.png"/>
  77. <Button Grid.Row="1" x:Name="BtnRecordingScreen" HorizontalAlignment="Left" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="46,0,15,0" ToolTip="开始" Click="BtnRecordingScreen_Click">
  78. <Image x:Name="ImgRecordingScreen" Source="./Images/Toobar26.png"/>
  79. </Button>
  80. <TextBlock Grid.Row="1" x:Name="txbTime" Text="00:00" FontSize="20" Foreground="#FFFFFF" Margin="43,80,0,0" Visibility="Hidden"/>
  81. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,15,0">
  82. <!--<Button x:Name="BtnRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,15,0" Click="BtnRecordingScreen_Click">
  83. <Image x:Name="ImgRecordingScreen" Source="./Images/Toobar25.png"/>
  84. </Button>-->
  85. <Button x:Name="BtnStopRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnStopRecordingScreen_Click" ToolTip="停止">
  86. <Border Background="#2d8cf0" CornerRadius="22">
  87. <Image x:Name="ImgEndRecordingScreen" Source="./Images/Toobar15.png" Margin="5,5,5,5"/>
  88. </Border>
  89. </Button>
  90. <Button Cursor="Hand" x:Name="btnBlackPenOne" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnBrush_Click" ToolTip="批注">
  91. <Border x:Name="borOne" Background="#2d8cf0" CornerRadius="22">
  92. <Image x:Name="imgBlackPenOne" Source="./Images/31.png" Margin="5,5,5,5"/>
  93. </Border>
  94. </Button>
  95. <Button Cursor="Hand" x:Name="btnBlackPenTwo" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnBlackPenTwo_Click" ToolTip="批注">
  96. <Border x:Name="borTwo" Background="#2d8cf0" CornerRadius="22">
  97. <Image x:Name="imgBlackPenTwo" Source="./Images/31.png" Margin="5,5,5,5"/>
  98. </Border>
  99. </Button>
  100. <Button Cursor="Hand" x:Name="btnReturn" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,12,0" Click="BtnReturn_Click" ToolTip="返回">
  101. <Border Background="#2d8cf0" CornerRadius="22">
  102. <Image x:Name="imgReturn" Source="./Images/Toobar29.png" Margin="5,5,5,5"/>
  103. </Border>
  104. </Button>
  105. </StackPanel>
  106. </Grid>
  107. </Grid>
  108. </Viewbox>
  109. </Window>