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