public static void SetToNotifyIcon(System.Windows.Window Form, Hardcodet.Wpf.TaskbarNotification.TaskbarIcon Icon) { switch (Taskbar.Position()) { case Taskbar.ePosition.Bottom: Form.Top = (SystemParameters.PrimaryScreenHeight - Taskbar.Size().Height - Form.Height); double left = (Icon.GetRectangle()[2] - (Form.Width / 2)); if((left + Form.Width) > (SystemParameters.PrimaryScreenWidth-10)) left = left -10; Form.Left = left; break; } }
public DropArea(TaskQueue q, Hardcodet.Wpf.TaskbarNotification.TaskbarIcon Icon) { InitializeComponent(); icon = Icon; queue = q; }