Beispiel #1
0
        public MainViewModel(IEventAggregator eventAggregator,
                             IIndex <string, IDetailViewModel> detailVmCreator,
                             IBasicToolBarViewModel basicToolBarViewModel,
                             INavigationViewModel navigationViewModel)
        {
            _eventAggregator           = eventAggregator;
            _detailVmCreator           = detailVmCreator;
            this.BasicToolBarViewModel = basicToolBarViewModel;
            this.NavigationViewModel   = navigationViewModel;

            _eventAggregator
            .GetEvent <SelectedDetailViewChangedEvent>()
            .Subscribe(OnSelectedDetailViewChanged);
            var id = _eventAggregator.GetHashCode();
        }