protected void OnPageChanged(int index) { CurrentPage = index; TitleViewModels.ForEach(x => x.IsSelected = false); TitleViewModels[index].IsSelected = true; }
protected virtual void OnTitleSelected(PageTitleViewModel titleVM) { CurrentPage = TitleViewModels.IndexOf(titleVM); TitleViewModels.ForEach(x => x.IsSelected = false); titleVM.IsSelected = true; }