Try It Yourself

The interactive playground at the end of the lesson contains a .NET MAUI project that was set up with all the graphical elements covered in this chapter. We can apply the following modifications to it and see how they affect the structure of the compiled application:

  • Applying SolidColorBrush.

  • Making relative animation absolute.

  • Drawing a different object on canvas.

  • Changing element alignment.

  • Applying element styling.

  • Applying theme changes.

Applying SolidColorBrush

In the setup at the end of the lesson, we have a Frame element with the Color property set to LightGreen. Let's replace this property with a SolidColorBrush, as the following snippet demonstrates:

Get hands-on with 1200+ tech skills courses.