MVVM handling the Drag events of MouseDragElementBehavior
问题 This question tells me what to do in words, but I can't figure out how to write the code. :) I want to do this: <SomeUIElement> <i:Interaction.Behaviors> <ei:MouseDragElementBehavior ConstrainToParentBounds="True"> <i:Interaction.Triggers> <i:EventTrigger EventName="DragFinished"> <i:InvokeCommandAction Command="{Binding SomeCommand}"/> </i:EventTrigger> </i:Interaction.Triggers> </ei:MouseDragElementBehavior> </i:Interaction.Behaviors> </SomeUIElement> But as the other question outlines, the