using System; using System.Windows; namespace XHWK.WKTool { /// /// 最小化工具栏 /// public partial class MinToolbar : Window { /// /// 屏幕宽 /// internal double pwidth = SystemParameters.PrimaryScreenWidth; /// /// 屏幕高 /// 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) { } } }