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

MinToolbar.xaml.cs 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Windows;
  3. namespace XHWK.WKTool
  4. {
  5. /// <summary>
  6. /// 最小化工具栏
  7. /// </summary>
  8. public partial class MinToolbar : Window
  9. {
  10. /// <summary>
  11. /// 屏幕宽
  12. /// </summary>
  13. internal double pwidth = SystemParameters.PrimaryScreenWidth;
  14. /// <summary>
  15. /// 屏幕高
  16. /// </summary>
  17. internal double pHeight = SystemParameters.PrimaryScreenHeight;
  18. public MinToolbar()
  19. {
  20. InitializeComponent();
  21. ResizeMode = ResizeMode.NoResize;
  22. Topmost = true;
  23. }
  24. public void Initialize(double top)
  25. {
  26. var desktopWorkingArea = System.Windows.SystemParameters.WorkArea;
  27. this.Left = desktopWorkingArea.Right - this.Width+7;
  28. this.Top = top+330;
  29. //Console.WriteLine(this.Top + "min");
  30. }
  31. private void buttonMin_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
  32. {
  33. this.Hide();
  34. APP.W_ScreenRecordingToolbarWindow.MaxToobar();
  35. }
  36. private void buttonMin_MouseEnter_1(object sender, System.Windows.Input.MouseEventArgs e)
  37. {
  38. }
  39. }
  40. }