Your best option is probably to use a Blend Behavior which is not to complex
c# - How to add a Blend Behavior in a Style Setter - Stack Overflow[
^].
More advanced users can use their own custom WPF Behaviors, which typically translates a certain event (eg. mouse click) into an invocation of a bound command.
So, you either want to research Blend behaviors if you just want to solve your current problem or WPF behaviors in general if you want to understand more about the technical approach (there really is a lot of content out there).