Windows Presentation Foundation (WPF) Question:
Explain the difference between Events and Commands in the MVVM model?
Answer:
Commands are more powerful and are advantageous to use instead of events. Actions are deeply connected with the event's source and, therefore, the events cannot be reused easily. But commands make it possible to efficiently maintain multiple actions at one place and then reuse them as per our requirement.
Previous Question | Next Question |
List the different kinds of Routed events in WPF? | What is MVVM pattern? |