/// <summary> /// Loads the content from specified uri. /// </summary> /// <param name="uri">The content uri</param> /// <returns>The loaded content.</returns> protected override object LoadContent(Uri uri) { BookListTransition tr = new BookListTransition(); LastLoad = uri; Transition.move(new BookList()); //loadData(tr); return Transition; }
/// <summary> /// Loads the content from specified uri. /// </summary> /// <param name="uri">The content uri</param> /// <returns>The loaded content.</returns> protected override object LoadContent(Uri uri) { BookListTransition tr = new BookListTransition(); LastLoad = uri; Transition.move(new BookList()); //loadData(tr); return(Transition); }
private async void loadData(BookListTransition tr) { //tr.loader.IsActive = true; await Task.Delay(10).ContinueWith(_ => { tr.move(new BookList()); // tr.loader.IsActive = false; Transition = tr; }); }
private void menu_SelectedSourceChanged(object sender, FirstFloor.ModernUI.Windows.Controls.SourceEventArgs e) { if (loader == null) return; if (e.Source.ToString().Trim().Contains(loader.LastLoad?.ToString().Trim())) { BookListTransition tr = new BookListTransition(); //loader.Transition.move(tr); tr.loadAsync(loader.Transition); } }
private void menu_SelectedSourceChanged(object sender, SourceEventArgs e) { if (loader != null) { int index = e.Source.ToString().IndexOf("#"); Service.getRubrique().SelectedRubrique = e.Source.ToString().Substring(index + 1); string cat = Service.getRubrique().SelectedRubrique; if (e.Source.ToString().Trim().Contains(loader.LastLoad?.ToString().Trim())) { BookListTransition tr = new BookListTransition(); // loader.Transition.move(tr); view = new BookList(); loader.Transition.move(view); } } }
public void reload(BookListTransition tr) { loadData(tr); }
public PageLoader(BookListTransition tr) { Transition = tr; }