/// <summary> /// Page load /// </summary> /// <param name="sender">Object sender</param> /// <param name="e">Event args</param> private async void Page_Loaded(object sender, RoutedEventArgs e) { // Load the playlist data model if needed if (MediaList == null) { // Create the playlist data model MediaList = new MediaList(); await MediaList.LoadFromMusicLibrary(); } // Create a new playback list matching the data model if one does not exist if (this.PlaybackList == null) { this.PlaybackList = MediaList.ToPlaybackList(); } }