From c71bc8aeff43e19a95b89ff36f10de3cd0ba4914 Mon Sep 17 00:00:00 2001 From: tobiichiamane Date: Thu, 14 May 2020 00:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=AF=BC=E8=87=B4=E4=B8=BB?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=97=A0=E6=B3=95=E6=9B=B4=E6=96=B0NavContro?= =?UTF-8?q?l=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PixivFSUWP/MainPage.xaml.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/PixivFSUWP/MainPage.xaml.cs b/PixivFSUWP/MainPage.xaml.cs index 5e3b2ad..c396163 100644 --- a/PixivFSUWP/MainPage.xaml.cs +++ b/PixivFSUWP/MainPage.xaml.cs @@ -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(); } }