public ChoosePublisherForReferencePageViewModel(WizardViewModel parent, List<Institution> institutions, List<Publisher> publishers) : base(parent) { _standardViewModel = new ChooseInstitiutionAndPublisherPageViewModel(parent, institutions, publishers); _externalViewModel = new ChooseExternalPublisherViewModel(parent); SelectedPublisherType = _standardViewModel; }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { viewModel = (ChooseInstitiutionAndPublisherPageViewModel)DataContext; institutionNameTextBox.Focus(); }