2015-02-23 70 views

回答

0

我認爲這是不可能的文本框中禁用刷卡鍵盤,但你可以從手機設置禁用它(設置 - >鍵盤 - >敲擊鍵盤的語言 - >取消選中「類型,因爲我通過信件刷卡」)。

1

實測一種解決方法。

添加一個文本框(刪除其中的文本) Add a textbox (and delete the text in it) 添加passwordbox上的文本框 Add a passwordbox on the textbox 設置passwordboxes不透明度爲0% Set the passwordboxes opacity to 0% 製作上的passwordbox一個passwordchanged觸發(上passwordbox雙擊不相同),並寫代碼上設置文本框到passwordboxes密碼文本(在此之前加名的passwordbox和文本框) Make a passwordchanged trigger on The passwordbox (double click on passwordbox does the same) and write a code that sets the text of The textbox to The passwordboxes password (add names to passwordbox and textbox before this) 你一定要做! 我希望我幫你。

+0

如果這不起作用,然後在文本框和密碼框中放置一個不可見的矩形。這應該工作。 – Ave 2015-02-23 21:17:35

+0

Ps我無法測試它。我在我的手機上,我無法安裝沒有電腦的版本。 (甚至在雲虛擬機上編寫代碼) – Ave 2015-02-23 21:20:44

1

不一定是最好的解決方案,但與InputScope玩可能會得到你想要的東西。例如,這將不允許形狀寫作鍵盤:

<TextBox InputScope="NameOrPhoneNumber"/> 

可能InputScope值的列表可以發現here。 [編輯:更新爲XAML]

相關問題