Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
修正导致主页面无法更新NavControl的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed May 13, 2020
1 parent f570750 commit c71bc8a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions PixivFSUWP/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,25 @@ private void NavControl_BackRequested(NavigationView sender, NavigationViewBackR
break;
}
}
if (param.GetType() == typeof((WaterfallPage.ListContent, int?)))
{
_programmablechange = true;
switch ((((WaterfallPage.ListContent, int?))param).Item1)
{
case WaterfallPage.ListContent.Recommend:
NavSelect(0);
break;
case WaterfallPage.ListContent.Bookmark:
NavSelect(1);
break;
case WaterfallPage.ListContent.Following:
NavSelect(2);
break;
case WaterfallPage.ListContent.Ranking:
NavSelect(3);
break;
}
}
UpdateNavButtonState();
}
}
Expand Down

0 comments on commit c71bc8a

Please sign in to comment.