TextBox.PreventKeyboardDisplayOnProgrammaticFocus Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether the on-screen keyboard is shown when the control receives focus programmatically.
public:
property bool PreventKeyboardDisplayOnProgrammaticFocus { bool get(); void set(bool value); };
bool PreventKeyboardDisplayOnProgrammaticFocus();
void PreventKeyboardDisplayOnProgrammaticFocus(bool value);
public bool PreventKeyboardDisplayOnProgrammaticFocus { get; set; }
var boolean = textBox.preventKeyboardDisplayOnProgrammaticFocus;
textBox.preventKeyboardDisplayOnProgrammaticFocus = boolean;
Public Property PreventKeyboardDisplayOnProgrammaticFocus As Boolean
<TextBox PreventKeyboardDisplayOnProgrammaticFocus="bool"/>
Property Value
bool
true if the on-screen keyboard is not shown when the control receives focus programmatically; otherwise, false. The default is false.
Remarks
Set this property to true to prevent the onscreen touch keyboard from showing when focus is programmatically set on a text box. By default, the onscreen touch keyboard is displayed whenever focus moves to an editable text box and the most recent input was generated by touch. This happens whether focus is set programmatically or by user interaction. In some situations, you might not want the keyboard to show when focus is set programmatically. For example, you might want to prevent the keyboard from covering part of your UI until the user is ready to continue their interaction.