Example #1
0
        public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState)
        {
            (App.Current as App).IsHideMenu = true;



            Window.Current.Dispatcher
            .RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal,
                      async() =>
            {
                await _DicordContext.WaitLoginAction();

                LoginProcessStatus.Value = "ログイン完了";

                await Task.Delay(TimeSpan.FromSeconds(0));

                _NavigationService.Navigate(PageTokens.LandingPageToken, null);

                _NavigationService.ClearHistory();

                (App.Current as App).IsHideMenu = false;
            })
            .AsTask()
            .ConfigureAwait(false);


            base.OnNavigatedTo(e, viewModelState);
        }