private void MainWindow_Activated(object sender, EventArgs e) { _viewA = _container.Resolve <ViewA>(); _viewB = _container.Resolve <ViewB>(); _region = _regionManager.Regions["ContentRegion"]; _region.Add(_viewA); _region.Add(_viewB); }
private void MainWindow_Loaded(object sender, RoutedEventArgs e) { _viewA = (ViewA)_container.Resolve(typeof(ViewA)); _viewB = (ViewB)_container.Resolve(typeof(ViewB)); _region = _regionManager.Regions["ContentRegion"]; _region.Add(_viewA); _region.Add(_viewB); }