我想知道如何在 UWP 应用程序上禁用指针模式。我已经设置了 XYFocusKeyboardNavigation,当我将我的 xbox one 控制器插入我的 PC 时,一切正常。每当我调试到我的控制台时,我都有一个指针而不是典型的 xbox 控件。我试图通过添加以下命令来禁用它,但没有任何效果,请帮助:
RequiresPointer="Never" //At Page Level
this.RequiresPointer = RequiresPointer.Never; //On Load
RequiresPointerMode = "WhenRequested" //In App.xaml
this.RequiresPointerMode = Windows.UI.Xaml.ApplicationRequiresPointerMode.WhenRequested; //tried on load but requirespointermode does not exist
Application.Current.RequiresPointerMode = ApplicationRequiresPointerMode.WhenRequested; //tried on load but got Error: System.NotSupportedException: 'Specified method is not supported.'