mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-02-15 02:58:31 -05:00
WPF NotifyIcon
-------------- ADD Added cleanup file for deployment. CHG Improved comments to context menu placement - could not remember why I did this in the first place. git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@124 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
@@ -681,7 +681,9 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
||||
|
||||
if (ContextMenu != null)
|
||||
{
|
||||
//use absolute position
|
||||
//use absolute positioning. We need to set the coordinates, or a delayed opening
|
||||
//(e.g. when left-clicked) opens the context menu at the wrong place if the mouse
|
||||
//is moved!
|
||||
ContextMenu.Placement = PlacementMode.AbsolutePoint;
|
||||
ContextMenu.HorizontalOffset = cursorPosition.X;
|
||||
ContextMenu.VerticalOffset = cursorPosition.Y;
|
||||
|
||||
Reference in New Issue
Block a user