SearchPane.ShowOnKeyboardInput SearchPane.ShowOnKeyboardInput SearchPane.ShowOnKeyboardInput SearchPane.ShowOnKeyboardInput SearchPane.ShowOnKeyboardInput Property

Definition

Gets or sets whether the user can open the search pane by typing.

public : Platform::Boolean ShowOnKeyboardInput { get; set; }
bool ShowOnKeyboardInput();

void ShowOnKeyboardInput(bool showonkeyboardinput);
public bool ShowOnKeyboardInput { get; set; }
Public ReadWrite Property ShowOnKeyboardInput As bool
var bool = searchPane.showOnKeyboardInput;
searchPane.showOnKeyboardInput = bool;

Property Value

bool bool bool

True if the user can type to search. Otherwise, false.

Remarks

Note

An app can't use both the search box (Windows.UI.Xaml.Controls.SearchBox for UWP app using C++, C#, or Visual Basic, WinJS.UI.SearchBox for Windows app using JavaScript) and the SearchPane. Using both the search box and the search pane in the same app causes the app to throw an exception with this message: "Cannot create instance of type 'Windows.UI.Xaml.Controls.SearchBox.'"

To learn more about when you should let users type to search, see Guidelines and checklist for search.