예제 #1
0
        public override void Close(SubScreenViewModel viewModel)
        {
            base.Close(viewModel);

            Publish(new RequestMainMenuScreenCommand()
            {
                ScreenType = typeof(MenuScreenViewModel)
            });
        }
예제 #2
0
 private void ScreenAdded(SubScreenViewModel screen)
 {
     //if screen is of current type, activate it; else deactivate it
     screen.IsActive = MainMenuRoot.CurrentScreenType == screen.GetType();
 }
 public virtual void Close(SubScreenViewModel viewModel)
 {
 }
 public virtual void InitializeSubScreen(SubScreenViewModel viewModel)
 {
     // This is called when a SubScreenViewModel is created
     viewModel.Close.Action = this.CloseHandler;
     SubScreenViewModelManager.Add(viewModel);
 }
예제 #5
0
 public override void InitializeSubScreen(SubScreenViewModel viewModel)
 {
     base.InitializeSubScreen(viewModel);
     // This is called when a SubScreenViewModel is created
 }