From the course: Mastering Xamarin.Forms Development: 8 Renderers, Behaviors, and Effects
Unlock this course with a free trial
Join today to access over 22,400 courses taught by industry experts.
Attached vs. Xamarin.Forms behaviors - Xamarin Tutorial
From the course: Mastering Xamarin.Forms Development: 8 Renderers, Behaviors, and Effects
Attached vs. Xamarin.Forms behaviors
- [Instructor] Well there's two types of behaviors. There's an out of the box attached behavior and then there's a Xamarin Forms behavior. Attached behaviors are static classes, and these are usable and they're sometimes appropriate, but Xamarin Forms behaviors are an enhanced type of generic behavior, and Xamarin Forms behaviors are the preferred approach to behavior construction. You don't have to use them, but in general, I found that a Xamarin Form behavior, not just performs better, but is much easier to implement and extend. So again, attached behaviors are available, and Xamarin Forms behaviors implement the standard attached behavior, but a Xamarin Forms behavior is an enhanced type of behavior, specific to the Xamarin Forms platform that is the preferred method for behavior construction.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Renderer, behavior, and effect concepts56s
-
Renderers1m 49s
-
Common renderer scenarios2m 12s
-
Implementing renderers1m 22s
-
Working with custom renderers14m 42s
-
Behaviors53s
-
Attached vs. Xamarin.Forms behaviors50s
-
Common behavior scenarios39s
-
Implementing behaviors40s
-
Working with behaviors8m 3s
-
Effects50s
-
Common effect scenarios51s
-
Implementing effects1m 14s
-
Working with effects15m 42s
-
-