Public NotInheritable Class SearchPaneSuggestionsRequestedEventArgs Implements ISearchPaneQueryChangedEventArgs
The SearchPaneSuggestionsRequestedEventArgs class has these types of members:
The SearchPaneSuggestionsRequestedEventArgs class inherits methods from the Object class (C#/VB/C++).
The SearchPaneSuggestionsRequestedEventArgs class has these properties.
|Read-only||The Internet Engineering Task Force (IETF) language tag (BCP 47 standard) that identifies the language currently associated with the user's text input device.|
|Read-only||An object that provides linguistic information about query text that the user is entering through an Input Method Editor (IME).|
|Read-only||The text that the app should provide suggestions for and that was in the search box when the suggestionsrequested event fired.|
|Read-only||An object that stores suggestions and information about the request.|
This object is passed to an app's suggestionsrequested event handler.
There are a few different ways you can get suggestions for your app to provide:
- From an app-defined, static, local list
- From a URL that supports suggestions in OpenSearch format
- From a URL that supports suggestions in XML format
After you obtain suggestions, you must append them to the collection of suggestions to display for the user's query. Access this collection with the searchPaneSuggestionsRequest.searchSuggestionCollection property.
Note If you want to provide result suggestions, you must also listen for and handle the resultsuggestionchosen event.
Note You can access information about the event from the searchPaneSuggestionsRequestedEventArgs object that is passed to your suggestionsrequested handler.
searchPane.SuggestionsRequested += new TypedEventHandler<SearchPane, SearchPaneSuggestionsRequestedEventArgs>(OnSearchPaneSuggestionsRequested);
Minimum supported client
|Windows 8 [Windows Store apps only]|
Minimum supported server
|Windows Server 2012 [Windows Store apps only]|
- Search contract sample
- Guidelines and checklist for search
- SearchPane class
- SearchPane.ResultSuggestionChosen event
- SearchPane.SuggestionsRequested event
- SearchSuggestionCollection class
- SearchPaneSuggestionsRequestedEventArgs class
- SearchPaneSuggestionsRequest.SearchSuggestionCollection property
Build date: 11/16/2013