Part 24 - Binding to Commands and CommandParameters

Sign in to queue

The Discussion

  • User profile image
    ryanthtra

    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
    aqibbanday

    @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