Пример #1
0
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            switch (listContent)
            {
            case ListContent.Recommend:
                Data.OverAll.RecommendList.PauseLoading();
                break;

            case ListContent.Bookmark:
                Data.OverAll.BookmarkList.PauseLoading();
                break;

            case ListContent.Following:
                Data.OverAll.FollowingList.PauseLoading();
                break;

            case ListContent.Ranking:
                Data.OverAll.RankingList.PauseLoading();
                break;
            }
            base.OnNavigatedFrom(e);
            if (!_backflag)
            {
                Data.Backstack.Default.Push(typeof(WaterfallPage), (listContent, clickedIndex));
                TheMainPage?.UpdateNavButtonState();
            }
        }
Пример #2
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     base.OnNavigatedFrom(e);
     if (!_backflag)
     {
         Data.Backstack.Default.Push(typeof(SettingsPage), null);
         TheMainPage?.UpdateNavButtonState();
     }
 }
Пример #3
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     itemsSource?.StopLoading();
     itemsSource = null;
     base.OnNavigatedFrom(e);
     if (!_backflag)
     {
         Data.Backstack.Default.Push(typeof(UserDetailPage), userid);
         TheMainPage?.UpdateNavButtonState();
     }
 }