This video describes when to use commands and how you should structure commands in your code.
- [Instructor] Commands are powerful tools…for maintaining design frameworks in your application.…It helps separate the business logic…from your view.…Here are some tips when using commands.…Refrain from passing as much data as possible.…Your ViewModel is there for a reason.…One way of break that pattern…is by sending different data to your command.…The ViewModel should be the only source of data…that you need.…For example, if you have a login command,…you should reference the ViewModel…for your username and password.…
This means command method…should have access to your ViewModel…and should be structured similarly…to the one that we have in our project…or with a framework using MvvmCross.…There's situations where sending information…is acceptable.…For example, commands that pass parameters…through a data template such as a list view…would work, however, you should take the minimum…amount of data needed to send to the command.…In our application we have two commands…where we send the ID of the to do item…for deleting and viewing.…
- Creating and implementing behaviors
- Stacking behaviors
- Adding behaviors to styles
- Creating commands
- Setting up and implementing triggers
- Tying it all together in a Xamarin app
Skill Level Intermediate
F# and Xamarin Development Basicswith Rachel Blasucci56m 43s Intermediate
1. Using Xamarin Behaviors
2. Using Xamarin Commands
3. Using Xamarin Triggers
4. Tying It All Together
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.