public ShellViewModel(IServiceDispatcher serviceDispatcher, IViewModelFactory viewModelFactory) { this.serviceDispatcher = serviceDispatcher; this.viewModelFactory = viewModelFactory; serviceDispatcher.Subscribe <INavigationService>(this); serviceDispatcher.Subscribe <IDetachService>(this); Items = new ObservableCollection <IViewModel>(); DetachedItems = new ObservableCollection <IViewModel>(); }
public MapViewModel(IServiceDispatcher serviceDispatcher) { this.serviceDispatcher = serviceDispatcher; serviceDispatcher.Subscribe <IMapService>(this); MapType = MapType.Roads; Markers = new ObservableCollection <Marker>(); TileOverlays = new ObservableCollection <TileOverlay>(); }
public virtual void Initialize() { CurrentPlatform = Container.GetInstance <IPlatformProvider>().GetPlatform(); Container.GetInstance <IViewModelFactory>().Initialize(); Container.GetInstance <IViewFactory>().Initialize(); Container.GetInstance <IServiceDispatcher>().Initialize(); pluginProvider = Container.GetInstance <IPluginProvider>(); serviceDispatcher = Container.GetInstance <IServiceDispatcher>(); serviceDispatcher.Subscribe <IShellNavigationService>(this); Run(); }
public TabShellViewModel(IServiceDispatcher serviceDispatcher, IViewModelFactory viewModelFactory) : base(serviceDispatcher, viewModelFactory) { serviceDispatcher.Subscribe <ITabNavigationService>(this); }
public virtual void Start() { serviceDispatcher.Subscribe <T>(this as T); }
public MasterDetailShellViewModel(IServiceDispatcher serviceDispatcher, IViewModelFactory viewModelFactory) : base(serviceDispatcher, viewModelFactory) { serviceDispatcher.Subscribe <IMasterDetailNavigationService>(this); }
public WebBrowserViewModel(IServiceDispatcher serviceDispatcher) { this.serviceDispatcher = serviceDispatcher; serviceDispatcher.Subscribe <IWebBrowserService>(this); }