EventToCommandBehavior inside DataTemplates.xaml #784
Replies: 1 comment
-
Closed as per the Community Stand-up discussion here: https://youtu.be/N9wMcBP4jtg?t=2889 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to use EventToCommandBehavior in a DataTemplate.
If I use this binding in "TapGestureRecognizer", everything works correctly:
Command="{Binding Path=EditCommand, Source={RelativeSource AncestorType={x:Type viewModels:MyViewModel}}}"
The same binding in "EventToCommandBehavior" end with:
System.InvalidOperationException: 'Operation is not valid due to the current state of the object.
Is this standard behavior or a bug? May someone please advise me how to solve this problem?
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions