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

Fire ContextFlyoutOpened even if Flyout is null #108

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

VisualAlf
Copy link

As I wrote in Issue #106 :

My usecase demands that I show a Window when requested by user's Right-Mouse-Click, while current solution forces me to use a Flyout instead. I could use a Flyout with a single menuitem that invokes my window but users don't like that.
A Workaround is to define an (empty) Dummy-Flyout and set the Handled Flag in the Eventhandler in order to suppress the Flyout.ShowAt().

Idea: Always fire ContextFlyoutOpened (if set), then check for Flyout not null and open it (if args.Handled is not set) .

src/TableView.cs Outdated Show resolved Hide resolved
src/TableView.cs Outdated Show resolved Hide resolved
@w-ahmad w-ahmad linked an issue Feb 14, 2025 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

ContextRequest without Flyout
2 participants