After creating the project in Visual Studio from the default template, we get Solution including one project. This project is ready to be launched in the emulator or deployed to the device — but has no functionality; it is our job to change this. From the beginning, the project contains the App.xaml
file.
The App.xaml
file and its code behind take care of the following:
Declaration of global resources
Handling application lifecycle events
Unhandled exception detection
Global resources declarations can be defined in App.xaml
under the <Application.Resources>
node, and their main advantage is accessibility—they can be reached from any place in the project. Global resources can be implemented as control styles, setters, and animations. However, we should use our common sense because application-level resource could impact the performance of our application. Why? Because global resources are loaded before any page is loaded while the splash screen is showing. If we will...