Ejemplo n.º 1
0
        private void ChangeViewModel(IPageViewModelWithSizes viewModel)
        {
            if (!PageViewModels.Contains(viewModel))
            {
                PageViewModels.Add(viewModel);
            }

            CurrentPageViewModel = PageViewModels
                                   .FirstOrDefault(vm => vm == viewModel);
        }
Ejemplo n.º 2
0
        private void ChangeViewModel(IPageViewModelWithSizes viewModel)
        {
            if (!PageViewModels.Contains(viewModel))
            {
                PageViewModels.Add(viewModel);
            }

            CurrentPageViewModel = PageViewModels
                .FirstOrDefault(vm => vm == viewModel);
        }