public void OnLoad() { // this only dependency on the host application IRegion region = _regionManager.GetRegion("mainTab"); // create the view in the mvvm style var updaterView = new UpdaterControl { DataContext = new UpdaterViewModel(_updater,_eventAggregator) }; // create the compatible view var tabView = new TabItem() { Header = "Updater", Content = updaterView }; // inject view into application region.AddView(tabView); }
public void OnLoad() { // this only dependency on the host application IRegion region = _regionManager.GetRegion("mainTab"); // create the view in the mvvm style var updaterView = new UpdaterControl { DataContext = new UpdaterViewModel(_updater, _eventAggregator) }; // create the compatible view var tabView = new TabItem() { Header = "Updater", Content = updaterView }; // inject view into application region.AddView(tabView); }