Dela via


PasswordBox.PreventKeyboardDisplayOnProgrammaticFocus Property

Definition

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 = passwordBox.preventKeyboardDisplayOnProgrammaticFocus;
passwordBox.preventKeyboardDisplayOnProgrammaticFocus = boolean;
Public Property PreventKeyboardDisplayOnProgrammaticFocus As Boolean
<PasswordBox PreventKeyboardDisplayOnProgrammaticFocus="bool"/>

Property Value

Boolean

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.

Applies to