public void OnNavigatedTo(NavigationParameters parameters)
        {
            ShowLoginButton = _weChatLogin.IsWXSupported();

            if (parameters.ContainsKey("logout"))
            {
                if ((bool)parameters["logout"])
                {
                    _azure.LogoutAsync();
                }
            }
        }
예제 #2
0
        public async void LoadActionSheet()
        {
            switch (await _pageDialogService.DisplayActionSheetAsync(_auth.CurrentUser.UserName, "Cancel", "Logout", "Profile", "Settings"))
            {
            case "Logout":
                await _azure.LogoutAsync();

                await _navigationService.NavigateAsync("LoginPage", useModalNavigation : true);

                break;

            case "Profile":
                break;

            case "Settings":
                break;

            default:
                break;
            }
        }