Part 24 - Binding to Commands and CommandParameters

Play Part 24 - Binding to Commands and CommandParameters

The Discussion

  • User profile image

    Thanks, Bob!

    While I see the use of Command objects instead of the Click event for the button in MainPage.xaml in order to keep the View and ViewModel decoupled, does that mean the Click event is pretty much obsolete when it comes to developing apps using the MVVM pattern?

  • User profile image

    @ryanthtra:i don't think its obsolete, we can make use off command like this only when we bind our control and when we are changing data in viewmodel, we cant even access the button object or other page objects in viewmodel.

Add Your 2 Cents