Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 2.15 KB

searchsuggestioncollection.md

File metadata and controls

31 lines (20 loc) · 2.15 KB
-api-id -api-type
T:Windows.ApplicationModel.Search.SearchSuggestionCollection
winrt class

Windows.ApplicationModel.Search.SearchSuggestionCollection

-description

Represents a collection of search suggestions to be displayed in the search pane in response to a suggestionsrequested event.

-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.

The search pane can display 5 suggestions, at most. Additionally, each separator you use takes the place of a suggestion and lowers the number of suggestions that you can display.

An app retrieves this object through the SearchPaneSuggestionsRequest.searchSuggestionCollection property while handling a SuggestionsRequested event.

-examples

-see-also

Search contract sample (Windows 8), SearchPane.SuggestionsRequested event, SearchPaneSuggestionsRequestedEventArgs class, SearchPaneSuggestionsRequestedEventArgs.Request property, SearchPaneSuggestionsRequest class, SearchPaneSuggestionsRequest.SearchSuggestionCollection property