In Winforms we (developers) handle user interactions via events.
In WPF we got commands.
Questions :
-
what’s difference between events in Winforms and commands in WPF? Which approach we must use? and when?
-
what’s difference between events in Winforms and routed events in WPF?
Command represented by an object which could be serialized, passed over a process, whatever, let’s say it is more “flexible”.
Routed Events supports next strategies – direct, bubbling and tunneling, also using routed event you can indicate that event was processed by settign an appropriate flag in event arguments.