Join James Timberlake for an in-depth discussion in this video Implement the MultiTrigger, part of Extending Xamarin with Behaviors, Commands, and Triggers.
- [Instructor] Okay, now that our stage has been set,…let's begin by creating a multi-trigger.…Let's get rid of our ending line here,…and create a new closing tag.…And let's add a new tag for Button.Triggers.…Another closing tag, and now we're going to start…with creating our multi-trigger.…It's going to accept the TargetType,…and it's going to be the button.…
Let's create our closing tag now.…Multi-triggers have the if/and L statements.…For that, we're going to have to declare binding conditions…inside of a new tag called MultiTrigger.Conditions.…We're going to create our first binding condition…to make sure that the entry name string…is neither no or empty.…Let's create our binding condition.…And we're going to set a binding value.…
We're going to set our source…to reference our entry name field.…We're going to set to path for text…as the variable we're going to use.…And we're going to set our converter to the static resource…that checks for empty strings.…I won't go too much into how it works,…but it'll send a false and true string…
- 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.