Replies: 1 comment
-
This should work: ...
<MenuItem Command="{Binding OpenCommand}" CommandParameter="{Binding $parent[SplitButton]}">
... See docs: Binding to an ancestor. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have many SplitButtons on my interface, and the Flyout menu of each SplitButton is the same, but it does a different action after clicking, so my code is as follows:
MenuItem Command="{Binding OpenCommand}" CommandParameter="{Binding ...}"
I would like to know how the CommandParameter of the MenuItem binds to get that SplitButton.
Beta Was this translation helpful? Give feedback.
All reactions