https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.uielement.contextcanceled?view=winrt-26100
UIElement.ContextCanceled Event (Windows.UI.Xaml) - Windows apps | Microsoft Learn
Occurs when a context input gesture continues into a manipulation gesture, to notify the element that the context flyout should not be opened.
eventwindowsuixamlapps