I'm bit new to WPF and MVVM.
I'm trying to develop some kind of re-usable view-models
to be used by others.
I'm creating a public interface for a particular view-model and provide its abstract implementation.
people who are using this library would be able to inherit from my abstract view-model and extend the view-model as they neeed and bind to their Views.
What my requirement is to provide a uniform way to binding
all the Button, Datagrid, ComboBox events to the viewmodel.
When googling I saw others have used MVVMLight "EventToCommand" implementation within the "Interaction.Triggers", like the below code snip.
Further, I want to clarify that if a button to be used/click using mouse or keyboard.
how the Interaction.Triggers needs to be implemented or placed in the View/Xaml.
Thanks in advance providing me your prompt answers for the above issues.