https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.frameworkelement.allowfocusoninteraction?view=winrt-28000
FrameworkElement.AllowFocusOnInteraction Property (Windows.UI.Xaml) - Windows apps | Microsoft Learn
Gets or sets a value that indicates whether the element automatically gets focus when the user interacts with it.
propertywindowsuixamlapps