public AddProficienciesView(ViewModelBase viewModel)
        {
            InitializeComponent();
            DataContext = viewModel;
            //vm = (WeaponProficiencyViewModel)viewModel;

        }
Ejemplo n.º 2
0
        private void ChangeViewModel(ViewModelBase viewModel)
        {
            if (!PageViewModels.Contains(viewModel))
                PageViewModels.Add(viewModel);
            CurrentPageViewModel = PageViewModels.FirstOrDefault(vm => vm == viewModel);
            index = PageViewModels.IndexOf(CurrentPageViewModel);
            //MessageBox.Show(index.ToString());
            CurrentPageView = PageViews[index];

        }