This video goes over the main page view components, and shows how to create behaviors for them, as well as how to create commands.
- [Instructor] Okay, now that we have everything…prepared for our app, let's start…by creating a trigger for our ListView.…We want to make sure our ListView doesn't get shown…when a to do list is empty.…Let's go ahead and get started.…I'm going to go to my ListView,…and I'm going to add our ListView.Triggers field,…and what we're going to be doing here…is adding a DataTrigger that relates…to the count of the to do list items…in order for it to be shown as invisible.…
So in our new tag, going to go ahead…and add a DataTrigger, and I'm going to a TargetType…as the ListView.…DataTriggers use the binding parameter…to check whether or not a data binding element…has a certain value.…We're going to be using our to do list…in our binding context.…So I'm going add binding,…I'm going to select my source,…and I'm going to reference the TodoListPage,…and I'm going set the path…to BindingContext, which is our view model,…and let's put that capital O to a lowercase O.…
BindingContext.TodoList, and we want to make sure…whether or not the count is zero.…
- 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?
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.