My XAML is:
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Image Source="X.png" HorizontalAlignment="Left"
Width="20" Height="20"
MouseLeftButtonDown="Image_MouseLeftButtonDown"/>
</ControlTemplate>
</Setter.Value>
</Setter>
Now I am following MVVM. I need to change the code to make it work with ViewModel. How can I handle MouseLeftButtonDown
event with ViewModel?