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); } }
public async void loadAsync(BookListTransition tr) { //await Task.Delay(0).ContinueWith(_ => Dispatcher.BeginInvoke(new Action(() => tr.move(new BookList())))); }