The last thing we will do to this view for the moment is to add a background image. The image we are using in this example is a result of a Google search for images that are free to use. Let's set this up by going through the following steps:
- In the Weather project, open the MainView.xaml file.
- Wrap the ScrollView in a Grid. Using a Grid is great if we want to have our elements in layers.
- Set the Background property of the ScrollView to Transparent.
- Add an Image element in the Grid with UriImageSource as the value of the Source property.
- Set the CachingEnabled property to true and the CacheValidity to 5. This means that the image will be cached in five days.
- The XAML should now look like the following code: