Skip to content
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

Add before popup event for context menu #105

Open
1 of 5 tasks
madnik7 opened this issue Sep 6, 2023 · 3 comments
Open
1 of 5 tasks

Add before popup event for context menu #105

madnik7 opened this issue Sep 6, 2023 · 3 comments

Comments

@madnik7
Copy link

madnik7 commented Sep 6, 2023

What would you like to be added:

I need to update items' status, like disable/enable, through an update pattern before the context menu shows. Currently, I use TrayIconWithContextMenu and MoveMove event, which is not the best practice. Would you add something like on_before_popup event? I think we used WM_INITMENUPOPUP inwin32.

Why is this needed:

For which Platform:

  • All
  • WPF
  • WinUI
  • Uno
  • Core

Anything else we need to know?

@HavenDV
Copy link
Owner

HavenDV commented Sep 7, 2023

My time is very limited for now, and I just implemented handling of this event. You can access this via TrayIconWithContextMenu.MessageWindow.InitMenuPopup

@madnik7
Copy link
Author

madnik7 commented Sep 7, 2023

Thank you, but I don't know why it doesn't do anything. I expected it to raise before the menu appeared.

@HavenDV
Copy link
Owner

HavenDV commented Sep 13, 2023

It's a shame it didn't work. Unfortunately, I now have big problems with free time and don’t have access to a Windows machine, so I’m leaving this open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants