When to use event and command for WPF/MVVM?
I am practicing on how to write a WPF application with MVVM pattern. So far I haven't used command in my code. In my Viewmodel I implement INotifyPropertyChanged and used (event PropertyChangedEventHandler PropertyChanged ) to fire events. Why do I feel like I still miss some concept of WPF about how to use command? When is it appropriate to use commands? Commands in WPF are used to abstract an user-triggered action (such as clicking a Button or pressing a key. here's a basic example: Suppose you want to search for employees in your database when the user clicks the "Search" button, or hits