Exemple #1
0
        void SignInViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            var vm = sender as SignInViewModel;

            switch (e.PropertyName)
            {
            case "SignInRequired":
            {
                if (vm.SignInRequired)
                {
                    if (!(MainPage is SignInPage))
                    {
                        MainPage = new SignInPage(vm);
                    }
                }
                else
                {
                    MainPage = new MyMasterDetailPage();
                }
                break;
            }
            }
        }