這裏我試了一下代碼。文本框的輸入範圍不適用於Windows 10通用應用程序
的XAML:
<TextBox Header="Telephone Number" InputScope="TelephoneNumber"/>
CS:
TextBox phoneNumberTextBox = new TextBox();
phoneNumberTextBox.Header="Telephone Number";
InputScope scope = new InputScope();
InputScopeName scopeName = new InputScopeName();
scopeName.NameValue = InputScopeNameValue.TelephoneNumber;
scope.Names.Add(scopeName);
phoneNumberTextBox.InputScope = scope;
但是當我按下鍵盤它顯示在文本框上的任意鍵的任何一個,請幫助我這個..
@Manu的Windows 10企業(建設10240) –
我指的是構建優化版本試試>> Windows鍵+ R,輸入「winver」http://www.howtogeek.com/236195/how-to-find-out-which-build-and-version-of-windows-10-you-have/ –
@Manu Windows 10.0企業(Buil d 10240) –