using System.Windows;
using System.Windows.Media;
namespace XHWK.WKTool
{
///
/// 最小化工具栏
///
public partial class MinToolbar
{
///
/// 屏幕宽
///
internal double pwidth = SystemParameters.PrimaryScreenWidth;
///
/// 屏幕高
///
internal double pHeight = SystemParameters.PrimaryScreenHeight;
public MinToolbar()
{
InitializeComponent();
ResizeMode = ResizeMode.NoResize;
Topmost = true;
}
///
/// 初始化隐藏工具栏位置颜色
///
///
///
public void Initialize(double top, double thisHeight)
{
var desktopWorkingArea = System.Windows.SystemParameters.WorkArea;
Left = desktopWorkingArea.Right - this.Width + 7;
Top = top;
// ReSharper disable once PossibleNullReferenceException
BorderBlack.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FF638AFF"));
Height = thisHeight;
}
private void buttonMin_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
{
this.Hide();
App.W_ScreenRecordingToolbarWindow.MaxToobar();
}
}
}