Try It Yourself

Practice what you learned in this chapter in an interactive code playground.

The interactive playground below contains a .NET MAUI project that is set up with the views covered in this chapter. You can apply modifications to it and see how they affect the structure of the compiled application. You can apply the following steps to practice all the concepts learned in this chapter:

  • Use event sender in code-behind.

  • Turn VericalStackLayout into a Grid layout.

Using event sender in code-behind

Let's open the MainPage.xaml.cs file. Its contents will look as follows:

Get hands-on with 1200+ tech skills courses.