Esempio n. 1
0
 /// <summary>
 /// Invoked when this page is about to be displayed in a Frame.
 /// </summary>
 /// <param name="e">Event data that describes how this page was reached.
 /// This parameter is typically used to configure the page.</param>
 protected async override void OnNavigatedTo(NavigationEventArgs e)
 {
     SongLoader.Loader = new StreamLoader();
     this.DataContext  = await SongLoader.Load();
 }
Esempio n. 2
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            this.DataContext = await SongLoader.Load();
        }
 /// <summary>
 /// Invoked when this page is about to be displayed in a Frame.
 /// </summary>
 /// <param name="e">Event data that describes how this page was reached.
 /// This parameter is typically used to configure the page.</param>
 protected async override void OnNavigatedTo(NavigationEventArgs e)
 {
     DataContext = await SongLoader.Load();
 }