From the course: Leveraging GenAI in .NET MAUI Development

Unlock the full course today

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

Solution: Use Copilot to create an animation

Solution: Use Copilot to create an animation - .NET MAUI Tutorial

From the course: Leveraging GenAI in .NET MAUI Development

Solution: Use Copilot to create an animation

(upbeat music) - [Instructor] For the solution, let's use Copilot Chat to see how to create the animation. So we'll click on GitHub Copilot Chat right here. And here's what I came up with as a request for what we want it to do. So we're going to go in MAUI, create a button click animation where the button gets smaller, then larger, and then snaps back to its original size over one second. Let's see what it comes up with. Okay, so it quickly came up with something saying we could use an animation class and saying here's how we can do it. And it's got a reference to a button. Now, I don't think we need to create an entire animation class. And this is where you got to evaluate exactly what's being said by Copilot and how it would tie into your code. Now, one thing I could have done is in my request, I could have given at a reference to that code that I wanted to add it to. And maybe it wouldn't have came up with creating a new class here because it's really not a class that we need to…

Contents