Another implementation of WPF Event to Command (with problems)
问题 I am looking at various implementations of hooking a ICommand up to a control's event. So for instance the GotFocus of a TextBox should call a GotFocusCommand in my View Model. I then got an idea to implement my own version (for my own learning) and it is working well, but I can only link one event to one command in the XAML. ( Basically I just use reflection to find the specified Event and then do a AddEventHandler that executes the command ) This works fine : <Button local:EventToCommand