From the course: .NET MAUI: Beyond the Basics

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Introduction to basic animations

Introduction to basic animations - .NET MAUI Tutorial

From the course: .NET MAUI: Beyond the Basics

Introduction to basic animations

- [Instructor] Microsoft MAUI provides a mechanism to do simple animations to anything that derives from VisualElement. If you remember from the very start of this course, pages, layouts and views all derive from VisualElement. This means that what we are going to talk about now will apply to almost any element on the screen except cells. Even then, views inside cells may still be animated. Animations can be run asynchronously and return a task. They can be awaited until they are complete or all animations on a visual element can be canceled by calling the CancelAnimations method on the element. Since they are task returning methods, we can run several of them at the same time even on the same view. Or we can do the opposite, wait until one animation on a view is complete before starting another. Basic animations fall into four basic categories, animations to show or hide a visual element to make it appear and disappear over…

Contents