I have a user control and I added it to my view :
<uc:myImageWrapper DataContext="{Binding C}"/>
And now I want the following : When user is clicking on the control I want to invoke command in view model: I added the event trigger and it works nice :
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseClick">
<i:InvokeCommandAction Command="{Binding MouseClickCommand}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
The problem is that I want to pass as parameter the x and y of the click relatively to my user control. I also want to pass what button (left or right) was clicked. How can I do this. Thank you,
Matvey