我正在使用CodeProject提供的WPF NotifyIcon。它运行良好,但是我注意到当使用.NET 4.0编译时,上下文菜单总是位于任务栏上方,而在.NET 3.5中则正常:
.NET 3.5
.NET 4.0
ContextMenu.Placement = PlacementMode.AbsolutePoint;
ContextMenu.HorizontalOffset = cursorPosition.X;
ContextMenu.VerticalOffset = cursorPosition.Y;
我几周前已经在 CodePlex的评论区中提出了这个问题,但没有得到答复。
有人有解决办法或变通方法吗?