Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windows 8 ストア アプリでテンキーのみを表示するにはどうすればよいですか? ユーザーが TextBox をクリックしたときにテンキーだけが表示されるようにしたい
要素に入力スコープを設定する必要があります。
<TextBox x:Name="txtBox" InputScope="Number" />
これはテンキーのみを取得することに注意してください。ユーザーは、手動で英数字キーボードに変更してテキストを入力することもできます。エントリを検証する必要があります。