Working with Animations in Xamarin.Forms

In the previous chapter, we learned how to customize DataTemplates to lay out your Views beautifully and neatly in your application's user interface by modifying your ContentPages (Views).

You also learned how to create, implement, and use the various styles in your XAML pages, prior to getting accustomed to working with the PlatformEffects API to customize the appearance and styling of native control elements for each platform by creating ButtonShadow and LabelShadow classes that inherit from the PlatformEffect class for each platform.

You then learned how to set up your margins and padding for each platform using the OnPlatform XAML tag, before moving on to learning how to manipulate the visual appearance of data-bound fields using ValueConverters and ImageConverters.

In this chapter, you will learn how to work with the various Animation classes that come as part of the Xamarin.Forms platform, so that you can apply really cool animations and transition effects to your user interfaces and control elements. You will get accustomed to working with and using Simple Animations in your XAML to create the necessary C# code in your ContentPages to interact with your XAML control elements, to apply various animation techniques to those controls that Rotate, Scale, Translate, and Fade.

You will learn how to implement and use Easing Functions in your ContentPages, using C# code and the Easing class, which will allow you to specify a transfer function that controls how animations speed up or slow down as they're running, by creating Custom Easing Functions that interact with your XAML control Visual Elements.

Finally, you'll learn how to work with the different types of transition effects called Entrance Animations, which you can use to apply Fading to your Views using ViewExtensions extension methods, which will allow you to create FadingEntranceSlidingEntrance, and SwingingEntrance animations for your ContentPage (View) or XAML control elements whenever the ContentPage is displayed on the screen.

This chapter will cover the following points:

  • Implementing Simple Animations with Xamarin.Forms in your XAML pages using C#
  • Implementing Easing Functions for XAML elements using C#
  • Implementing Custom Animations using the Xamarin.Forms and Animation classes and C#
  • Implementing Entrance Animations for your XAML elements using C#
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.148.210