/// <summary> /// Reload all frames /// </summary> private void ReloadAll() { MainFrame.Navigate(typeof(MainView)); ((MainView)MainFrame.Content).Refresh(); ToWatchFrame.Navigate(typeof(ToWatchView)); ((ToWatchView)ToWatchFrame.Content).Refresh(); ScheduleFrame.Navigate(typeof(ScheduleView)); ((ScheduleView)ScheduleFrame.Content).Refresh(); StatisticsFrame.Navigate(typeof(StatisticsView)); ((StatisticsView)StatisticsFrame.Content).Refresh(); }
public MainPage() { InitializeComponent(); DataContextChanged += (s, e) => Bindings.Update(); static_MainPivot = MainPivot; static_MainFrame = MainFrame; static_ToWatchFrame = ToWatchFrame; // Navigate to AnimeGridView MainFrame.Navigate(typeof(MainView)); ToWatchFrame.Navigate(typeof(ToWatchView)); ScheduleFrame.Navigate(typeof(ScheduleView)); StatisticsFrame.Navigate(typeof(StatisticsView)); }