|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
-
- using System;
- using System.Windows;
-
-
- namespace XHWK.WKTool
- {
- /// <summary>
- /// 最小化工具栏
- /// </summary>
- public partial class MinToolbar : Window
- {
- /// <summary>
- /// 屏幕宽
- /// </summary>
- internal double pwidth = SystemParameters.PrimaryScreenWidth;
-
- /// <summary>
- /// 屏幕高
- /// </summary>
- internal double pHeight = SystemParameters.PrimaryScreenHeight;
- public MinToolbar()
- {
- InitializeComponent();
- ResizeMode = ResizeMode.NoResize;
- Topmost = true;
-
- }
- public void Initialize(double top)
- {
- var desktopWorkingArea = System.Windows.SystemParameters.WorkArea;
- this.Left = desktopWorkingArea.Right - this.Width+7;
- this.Top = top+330;
-
- //Console.WriteLine(this.Top + "min");
- }
-
- private void buttonMin_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
- {
- this.Hide();
- APP.W_ScreenRecordingToolbarWindow.MaxToobar();
- }
-
- private void buttonMin_MouseEnter_1(object sender, System.Windows.Input.MouseEventArgs e)
- {
-
- }
- }
- }
|