1
Vote

Feature request: IEventArgsConverter for EventToCommand

description

First I'm in the camp were it is unaccaptable to allow UI references in my ViewModel. The ViewModel should not be aware of the View and that includes references to UI elements or anything under System.Windows.Controls namespace. To allow this scenario for RelayCommands that require event arguments this new feature would be needed.

I'd like to be able to handle my event arguements in a converter before it goes to the ViewModel. As of right now the toolkit just sends whatever event arguements are defined by the UI to the ViewModel. Any class implementing IEventArgsConverter would be able intercept the event arguments from an EventToComand and output a System.Object to the wired up RelayCommand. This would work just like we already use System.Windows.Data.IValueConverter in XAML data-binding.

comments