Xamarin Forms includes an assortment of commonly know controls out of the box to help developers build cross-platform UIs using XAML. However, if you are going to use Xamarin Forms for real-world projects you’re going to need to understand custom renderers on how to customizing the rendering of the controls to their native versions. Besides covering customer renders this session will cover how to leverage animation in your controls to add the extra professional polish to your Xamarin mobile apps.
Supercharge xamarin forms with custom renderers and animations
1. Supercharge Xamarin Forms
with Custom Renders and
Animations
Tom Walker Microsoft and Xamarin MVP
tomwalkercodes@outlook.com
2. Meet Tom Walker | tomwalkercodes.@outlook.com
• Founder @LdnOntNetDevs | LondonNetDevelopers.ca
• Microsoft and Xamarin MVP
• Developer for 15+ years now focusing on mobile and
web frontend
• Xamarin Certified Developer
6. Animations
• Great way to add polish to your user interface
• Changing a property from one state or position to
another state or position over a period of time
7. ViewExtensions
• Class provides number of extensions
• TranslateTo
• ScatleTo
• RotateTo
• FadeTo
• Async
• Can use Task.WhenAll to create composite animations
• Default animation takes 250 milliseconds
• CancelAinmations method can be used to cancel
animations
16. Custom Renderers
• Customer renders provide a powerful
approach for customizing the appearance
and behavior of Xamarin.Froms controls.
• If a custom renderer isn't registered,
then the default renderer for the
control's base class will be used.
17. When to create a custom rendered
Custom Controls
• Calendar
• Accordion
• Charting
Custom Rendering
• Text Decoration
• Shadows
• Platform-specific
features
19. Steps To A Simple Customized Control
• Create the new class (MyEntry)
• Derive from Entry
• Create custom rendered in each platform
• Key method is OnElementChanged