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.

Challenge: Animations

Challenge: Animations

(upbeat music) - [Instructor] Let's put some of our learning with animations to use. Here we have a screen with a button at the bottom. If we tap the button just like this, we can see a nice little animation. I've also added a shadow to the button as well to give it the illusion of elevation. What we want is for the button to appear to be depressed. This will require a couple of animations. First, the button should move down and to the right on the screen and then go back up to the position it was. Second, the shadow of the button should get smaller as the button moves down and to the right, making it look as if it is going down. The opposite should happen as it moves back to its original position. Here's the code for the start of this video. The screen has already been created. So if we open up main view page we can see the screen that we just saw. And here's the button. The button has a shadow. You can see the…

Contents