-
-
Notifications
You must be signed in to change notification settings - Fork 47
Adding support for Tray context menus #241
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
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 adds comprehensive support for tray context menus and flyouts to the WinUIEx library. It enables developers to display WinUI 3 flyouts when users interact with the system tray icon through various mouse actions.
Key changes:
- Refactored tray icon functionality into a separate partial class for better organization
- Added comprehensive event handling for all tray icon mouse interactions (left/right clicks, double-clicks, mouse up/down)
- Implemented support for displaying WinUI 3 flyouts anchored to the tray icon location
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/WinUIExSample/MainWindow.xaml.cs | Added example implementation showing both MenuFlyout and custom Flyout usage with tray icon events |
| src/WinUIEx/WindowManager.cs | Refactored tray icon message handling to use new ProcessTrayIconEvents method and moved tray functionality to partial class |
| src/WinUIEx/WindowManager.TrayIcon.cs | New partial class containing all tray icon functionality, event handling, and flyout display logic |
| src/WinUIEx/WinUIEx.csproj | Updated package release notes to describe the new tray flyout feature |
| src/Directory.Build.targets | Updated version from 2.8.0 to 2.9.0 and baseline validation version |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.