Show/Hide Keyboard programmatically on windows8

后端 未结 5 1321
南旧
南旧 2020-12-09 21:01

I am trying to show/hide keyboard on a Windows Metro app programmatically. I initially thought I could do it using a collapsed textbox and setting focus on it. But it seems

5条回答
  •  旧巷少年郎
    2020-12-09 21:52

    Just put a TextBox and hide it. Set the IsReadOnly = true and set the tab index of the TextBox to 0, so keyboard will focus on that TextBox but it realize TextBox is readonly and it will not poped up. :)

提交回复
热议问题