Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.85 KB

searchpane_querychanged.md

File metadata and controls

32 lines (21 loc) · 1.85 KB
-api-id -api-type
E:Windows.ApplicationModel.Search.SearchPane.QueryChanged
winrt event

Windows.ApplicationModel.Search.SearchPane.QueryChanged

-description

Fires when the user changes the text in the search box.

-remarks

Important

To implement search in an app for Windows 10 or later, use AutoSuggestBox. See Auto-suggest box for more info.

You should not use Windows.ApplicationModel.Search APIs (SearchPane, SearchContract) or SearchBox APIs in apps for Windows 10 or later.

Note

An app can't use both the search box (Windows.UI.Xaml.Controls.SearchBox/WinJS.UI.SearchBox) 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.'"

Register to be notified when this event fires by adding an event listener to the searchPane and assigning a handler function for the event. You can access information about the event with the searchPaneQueryChangedEventArgs object that is passed to your event handler.

-examples

-see-also

SearchPane class, SearchPane.QuerySubmitted event, SearchPaneQueryChangedEventArgs class