This video describes when to use behavior and how you should structure and form your behaviors in code.
- [Instructor] Behaviors can greatly improve…the quality of your code.…Here are some best practices I've found…to making the best of behaviors.…Keep it simple.…Remember to make sure your behaviors contain…generally useful functionality for your view elements.…Also, keep the number of functionalities…a behavior can achieve as low as possible.…If your behavior could perform more than…two sets of functionalities, it needs…to be broken into another behavior.…Organization is key.…
As you develop your behavior library,…you'll want to be sure you or other team members…don't end up making duplicate behaviors…due to current behaviors being hard to find.…I usually try to conform to a behavior folder…with the behavior class file prefixed…with the control type before the function.…This keeps behaviors from one type of control…arranged neatly in your development environment,…making it easier to find.…And, finally, make it testable.…Most of the important parts of your code…should be able to be unit tested.…
And, remember, the smaller the behavior,…
- 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.