在这里我报告我的警觉的例子:设置位置
正如你可以从图片中看到我不能让任务栏上面我的警告窗口。
这是我设置窗口的poszione代码:
public new void Show()
{
this.Left = Application.Current.MainWindow.Left +
Application.Current.MainWindow.ActualWidth - this.Width;
this.Top = Application.Current.MainWindow.Top +
Application.Current.MainWindow.ActualHeight - this.Height;
this.Topmost = true;
Application.Current.MainWindow.Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.ApplicationIdle,
(System.Threading.ThreadStart)delegate()
{
base.Show();
});
}
在您的屏幕截图中,警报位于任务栏上方。这里有什么问题? – Herdo 2014-09-29 09:19:43
警报必须略高于最左侧。 – iamwill 2014-09-29 09:36:29
@Herdo在Y轴上可能是“上方”(即op希望它不*重叠任务栏),但我只是猜测 – Alex 2014-09-29 09:42:29