Join James Timberlake for an in-depth discussion in this video Implement a behavior, part of Extending Xamarin with Behaviors, Commands, and Triggers.
- [Instructor] Okay, now we have our behavior…properly coded and ready to go.…We just need to add it to a View.…Let's get started on that.…Here we have our AddTodoPage,…and as you can see if we go to our preview,…it takes a name and date…in order to create a to do item.…What we want to do here is take the name date…and make sure it only has uppercase letters.…Let's do that with our behavior.…I'm going to take this preview away,…and the first thing I'm going to do…is I'm going to create a namespace…that we can use to reference our behavior.…
Some people like to put this in their code…before files instead of XAMLs.…I like to use XAMLs because it's a clear representation…of what your View should be doing.…So no one has to go inside of your CS files…in order to make sure what your view logic is.…I'm setting a namespace here Todo.Behaviors.…How do I know which namespace to use?…If I go to EntryAllUppercase and choose the namespace,…it's right there for me.…Now to attach the behavior to the entry View.…
We're going to find our name entry view,…
- 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.