Esempio n. 1
0
        /// <summary>
        /// Log out event handler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="eventArgs"></param>
        private void ViewModel_OnLogOutCompleted(object sender, EventArgs eventArgs)
        {
            // Need to make this page the only one on the stack, so back button exits
            BaseApp app = (BaseApp)Application.Current;

            app.switchToSettingsPage();
        }
Esempio n. 2
0
        /// <summary>
        /// Register ServiceUrlMissingHandler and call CreateContent.
        /// </summary>
        protected virtual void Initialize()
        {
            Authentication.Current.RegisterServiceUrlMissingHandler(() =>
            {
                BaseApp app = (BaseApp)Application.Current;
                app.switchToSettingsPage();
                return(Task.FromResult(true));
            });

            this.SetBindingContext();

            this.CreateContent();
        }