We need to call this method in order for the magic to happen, so follow these steps to do so:
- Open MainPage.xaml.cs.
- Add the following code in bold to the constructor:
public MainPage()
{
InitializeComponent();
AddInitialPhotos();
}
There isn't much to say here. After the MainPage object is initialized, we call the method to add 10 random photos that we will download from the internet.