【发布时间】:2011-11-29 01:08:17
【问题描述】:
当窗口启动时,我想在TaskBar 的时钟上显示我的窗口。
如何找到桌面右下角的位置?
我使用的代码在 Windows 窗体应用程序中运行良好,但在 WPF 中无法正常运行:
var desktopWorkingArea = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea;
this.Left = desktopWorkingArea.Right - this.Width;
this.Top = desktopWorkingArea.Bottom - this.Height;
【问题讨论】: