Join James Timberlake for an in-depth discussion in this video Data triggers, part of Extending Xamarin with Behaviors, Commands, and Triggers.
- [Instructor] Okay, now that we have…a nice, styled property trigger…added to our name and date entries,…let's add a data trigger.…I'm going to go to my do to page,…and now what I'd like is something…a little more nuanced.…Whenever a to do item has a date that's past due,…I want it to show as red.…Let's get started with doing that.…I'm going to do my closing tags,…get rid of that.…And the ending tag for the label.…And I'm going to create a trigger tag based on the labels,…now normally I would want to put anything in the style,…but I'm not doing that because this trigger…is going to take some of the data binding elements…that we use for our item, and we don't want…that to get lost in the context of things.…
I'm going to declare a data trigger tag,…and I'm going to declare the target type,…which is going to be a label.…And before we continue, there's a couple of things…I want this to do.…The date is a string, but we want to be able…to convert it into a date object…and compare it to our current date.…Before we do that, we're going to need a converter…
- 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.