https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.data.icollectionview.currentchanging?view=winrt-26100
ICollectionView.CurrentChanging Event (Windows.UI.Xaml.Data) - Windows apps | Microsoft Learn
When implementing this interface, fire this event before changing the current item. The event handler can cancel this event.
data appseventwindowsuixaml