This video goes through what a command is and how to implement it.
- [Instructor] What is a command?…Commands are callback methods…that allow separation between the view…and business logic of your app.…Implementing commands requires the use…of the iCommand interface.…Interface implements three methods.…Execute, can execute and can execute changed.…The execute field is what's needed to be implemented…in order to successfully execute a command.…This could be simplified by passing a delicate method…to the command class in the Xamarin forms name space.…
One question you may have is,…what's the difference between commands and events?…Events are tied to the view code specifically.…Meaning you're forced to tie your business logic…to your view classes.…Furthermore, events sends specific data…and are limited to the data tied to that view object.…Commands are anonymous in the sense…that they can be declared outside of the view,…allowing you to separate the business logic…from the view.…Commands can also accept any parameter,…giving limitless applications…to the data the commands work with.…
- 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 Reese56m 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.