Delen via


SearchBox.FocusOnKeyboardInputProperty Property

Definition

Identifies the FocusOnKeyboardInput dependency property.

public:
 static property DependencyProperty ^ FocusOnKeyboardInputProperty { DependencyProperty ^ get(); };
static DependencyProperty FocusOnKeyboardInputProperty();
public static DependencyProperty FocusOnKeyboardInputProperty { get; }
var dependencyProperty = SearchBox.focusOnKeyboardInputProperty;
Public Shared ReadOnly Property FocusOnKeyboardInputProperty As DependencyProperty

Property Value

The identifier for the FocusOnKeyboardInput dependency property.

Remarks

Note

When FocusOnKeyboardInput is set to true, there’s an issue that sometimes causes users to see duplicate characters in the SearchBox control when using the touch keyboard. You can work around the issue by following these steps: 1. Register for the PrepareForFocusOnKeyboardInput event and use the event handler to set FocusOnKeyboardInput to false. 2. Register for the LostFocus event and use the event handler to set FocusOnKeyboardInput back to true.

Applies to