Challenge: XAML—MAUI UI Language

Test yourself by making XAML layout modifications.

Using the project at the end of this lesson, perform the tasks highlighted in the problem statement section.

Problem statement

The challenge consists of the following tasks:

  • Changing layout orientation.

  • Changing the functionality of a button.

Changing layout orientation

We have a simple MAUI application below. The MainPage.xaml stacks the elements horizontally, which doesn't look good. You need to change this so the elements are stacked vertically. Once the modifications are applied, this is how the UI is expected to change:

Get hands-on with 1400+ tech skills courses.