Skip to content

How to get Flyout's owner Control? #17806

Answered by msneijders
nasterhe asked this question in Q&A
Discussion options

You must be logged in to vote

This should work:

...
<MenuItem Command="{Binding OpenCommand}" CommandParameter="{Binding $parent[SplitButton]}">
...

See docs: Binding to an ancestor.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nasterhe
Comment options

Answer selected by nasterhe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants