Ejemplo n.º 1
0
        private void NavigateToSubview(Guid id)
        {
            var overview = new CategorieOverviewViewModel();

            overview.NavigateToSubView += (sender, args) =>
            {
                var nextViewId = args.Id;
                var nextView   = new ApplicationOverviewViewModel(nextViewId);
                nextView.Navigate += (sender2, targetArgs) =>
                {
                    CurrentView = targetArgs.Target;
                };
                CurrentView = nextView;
            };
        }
Ejemplo n.º 2
0
 public MainViewModel()
 {
     //ButtonViewModel = new ButtonViewModel();
     ShortcutViewModel = new ShortcutViewModel();
     InitMenuItems();
     _categorieOverviewView = new CategorieOverviewViewModel();
     _categorieOverviewView.NavigateToSubView += (sender, args) =>
     {
         var nextViewId = args.Id;
         var nextView   = new ApplicationOverviewViewModel(nextViewId);
         nextView.Navigate += (sender2, targetArgs) =>
         {
             CurrentView = targetArgs.Target;
         };
         CurrentView = nextView;
     };
     CurrentView = _categorieOverviewView;
 }