Esempio n. 1
0
        protected override void ProfileButtonClicked(object sender, System.EventArgs e)
        {
            var accounts = new AccountsViewController();
            var nav      = new UINavigationController(accounts);

            accounts.NavigationItem.LeftBarButtonItem = new UIBarButtonItem(NavigationButton.Create(Theme.CurrentTheme.CancelButton, () => {
                var appDelegate = UIApplication.SharedApplication.Delegate as AppDelegate;
                Transitions.Transition(appDelegate.Slideout, UIViewAnimationOptions.TransitionFlipFromRight);
            }));
            Transitions.Transition(nav, UIViewAnimationOptions.TransitionFlipFromLeft);
        }
Esempio n. 2
0
        private void ShowAccountsAndSelectedUser(GitHubAccount account)
        {
            var accountsController = new AccountsViewController();

            accountsController.NavigationItem.LeftBarButtonItem = null;
            var login = new LoginViewController(account);

            var navigationController = new CustomNavigationController(this, accountsController);

            navigationController.PushViewController(login, false);
            Transitions.TransitionToController(navigationController);
        }