UWPアプリケーションでポインタモードを無効にする方法を知りました。私はすでにXYFocusKeyboardNavigationをセットアップしています。私は自分のXboxのコントローラーを自分のPCに接続するとすべてが完璧に動作します。コンソールにデバッグするたびに、典型的なxboxコントロールの代わりにポインタがあります。私は、次のコマンドを追加して、それを無効にすることを試みたが、何も働いていない、助けてください:Xbox One(C#、UWP)のポインタモードを無効にする方法
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.'
定義this.RequiresPointerMode、SuspendingとOnSuspendingは存在しません....私はしばらく前にそれを試みました。何か案は? – tadll122101
あなたの 'App.xaml.cs'ファイルに上記のコードを書いてください。 –
'RequiresPointerMode'は' Application'プロパティです。あなたの 'App.xaml.cs'ファイルに上記のコードを書くべきです。またはコンパイルエラーが発生します。 – CoCaIceDew