-
-
Notifications
You must be signed in to change notification settings - Fork 876
Fix system tray right-click menu not displaying #1497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a bug where the system tray right-click menu was not displaying properly by improving menu positioning and data context handling.
Key changes:
- Modified menu placement to use direct property setting instead of ContextMenuService
- Added data context synchronization between NotifyIcon and its ContextMenu
- Fixed property assignment to use the internal manager instead of the control itself
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
File | Description |
---|---|
src/Wpf.Ui.Tray/Internal/InternalNotifyIconManager.cs |
Updated menu placement logic to use direct property setting for better positioning |
src/Wpf.Ui.Tray/Controls/NotifyIcon.cs |
Added data context synchronization, fixed property assignments, and improved menu initialization |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
+1 |
Probably not the one you meant to link? |
Commented out the line that updates Menu's DataContext to prevent potential issues.
There are two issues mentioned in this issue, which were not mentioned separately at the time, so the names of the issues are a bit inconsistent. |
Fix system tray right-click menu not displaying
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: [#1490 ]
What is the new behavior?
Other information