Try it out
Time to start writing code!
Create a new project named ForgetMeNotJesse
(you might want to use your own name where I have put mine). Ideally, put that project under source control (see the Technical requirements section at the top of this chapter).
Use the .NET MAUI template to create your project, using the latest version of .NET (.NET 7 at the time of the writing of this book).
Run your program to make sure everything is set up correctly.
Change MainPage
so that clicking on the button updates a label below the button with the number of clicks (in addition to displaying it on the button itself).
Once the page is working as intended, create a new page and recreate your MainPage
in C# rather than in XAML. To test it, remember to set the ShellContent
element in AppShell.xaml
to point to your new page like this:
<ShellContent Title="Home" ContentTemplate="{DataTemplate local:MainPageCS}"...