Continue your app development by extending functionality using the different trigger types.
- [Narrator] Let's add a trigger to our refresh button,…that allows us to refresh our to-do list.…In order to do that we're going to out view model first.…This is our to-do list page,…so we're going to go to our to-do list view model,…and we're going to add a new command.…So public ICommand…CleanAndRefresh…And we are going to set this in our controller.…So we're going to go back to our controller,…and before we set that into view model,…we're going to create a public async Task,…and we're going to name it CleanAndRefresh.…
Now we're going to go back up to…our on controller initialization method,…and we are going to set this method as a call back,…for a CleanAndRefresh ICommand.…So view model.CleanAndRefresh.…Goes new_Command…and we are going to create…an async method that calls our CleanAndRefresh method.…
Now let's add some functionality to that.…Let's go ahead and access our view model,…and we are just going to get our to-do list,…and just create a complete new list.…That takes the type of a to-do item.…And we are seeing some errors here,…
- 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?
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.