Xamarin.Forms Projects
上QQ阅读APP看书,第一时间看更新

Removing the MainPage file

In Xamarin.Forms, we have the concept of pages. This is not the case, however, for the MVVM architectural pattern, which instead uses the concept of views. Views are the same thing as pages but they are not suffixed with -Page, so we will delete the MainPage generated by the template. We will go into more detail on MVVM shortly, but for the time being, we will remove the MainPage.cs class from the solution. This can be done as follows:

  1. Right-click on the MainPage.xaml file in the DoToo project (the .NET Standard library)
  2. Click Delete and confirm the delete action