I am capturing the PreviewSelectionChanged event in my ViewModel successfully. I want to validate data on the page and show a confirmation dialog and cancel the tab change or not depending on the DialogResult. Can I please have an example on how to do this? I can also accomplish this if someone shows me how to access the indices of items in e.AddedItems and e.RemovedItems.