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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Shapes;
  14. namespace XHWK.WKTool
  15. {
  16. /// <summary>
  17. /// 录屏工具栏
  18. /// </summary>
  19. public partial class ScreenRecordingToolbarWindow : Window
  20. {
  21. public ScreenRecordingToolbarWindow()
  22. {
  23. InitializeComponent();
  24. }
  25. /// <summary>
  26. /// 画笔工具栏关闭事件
  27. /// </summary>
  28. /// <param name="sender"></param>
  29. /// <param name="e"></param>
  30. private void BtnToolbarDown_Click(object sender, RoutedEventArgs e)
  31. {
  32. gridToolbar.Visibility = Visibility.Hidden;
  33. gridColour.Visibility = Visibility.Hidden;
  34. gridThickness.Visibility = Visibility.Hidden;
  35. }
  36. /// <summary>
  37. /// 画笔点击事件
  38. /// </summary>
  39. /// <param name="sender"></param>
  40. /// <param name="e"></param>
  41. private void BtnBrush_Click(object sender, RoutedEventArgs e)
  42. {
  43. gridToolbar.Visibility = Visibility.Visible;
  44. }
  45. /// <summary>
  46. /// 画笔粗细事件
  47. /// </summary>
  48. /// <param name="sender"></param>
  49. /// <param name="e"></param>
  50. private void BtnThickness_Click(object sender, RoutedEventArgs e)
  51. {
  52. gridThickness.Visibility = Visibility.Visible;
  53. gridColour.Visibility = Visibility.Collapsed;
  54. }
  55. /// <summary>
  56. /// 画笔颜色事件
  57. /// </summary>
  58. /// <param name="sender"></param>
  59. /// <param name="e"></param>
  60. private void BtnColour_Click(object sender, RoutedEventArgs e)
  61. {
  62. gridColour.Visibility = Visibility.Visible;
  63. gridThickness.Visibility = Visibility.Collapsed;
  64. }
  65. }
  66. }