https://prismlibrary.github.io/docs/wpf/interactivity/event-to-command.html
Add the Prism namespace to be able to declare InvokeCommandAction in the XAML.
xmlns:prism="http://prismlibrary.com"
And attach to the control with the desired event.
took me some time to figure why it didn't work