https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.uielement.capturepointer?view=winrt-22621
UIElement.CapturePointer(Pointer) Method (Windows.UI.Xaml) - Windows apps | Microsoft Learn
Sets pointer capture to a UIElement. Once captured, only the element that has capture will fire pointer-related events.
pointermethodwindowsuixaml