You can use the library System.Windows.Interactivity, which can be added as a link in your project.
Add a namespace:
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
And call the commands through <i:InvokeCommandAction>:
<Thumb>
<i:Interaction.Triggers>
<i:EventTrigger EventName="DragDelta">
<i:InvokeCommandAction Command="{Binding DataContext.ThumbDragDeltaCommand, RelativeSource={RelativeSource AncestorType={x:Type Window}}}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Thumb>
ViewModel:
private ICommand ThumbDragDeltaCommand { get; set;}
public MainViewModel()
{
ThumbDragDeltaCommand = new DelegateCommand(x =>
{
}
}
, , MVVM, .