We are getting closer to the first moment of truth. It's time to try the app out and see if it looks like the screenshots shown throughout the chapter. We only have one last thing to do, and that is to instantiate the MainShell and assign it to the MainPage property of the app. Proceed as follows:
- In the News project, open the App.xaml.cs file.
- Replace the assignment of the main page with a call to the Resolver with the following code marked in bold:
public App()
{
InitializeComponent();
Bootstrapper.Initialize();
MainPage = Resolver.Resolve<MainShell>();
}
The app should now run. If not, calm down and simply go through the code again. After you are done with navigating around the app, let's create a news service to fetch news from, and extend all those views that we've created.