SearchBox.ResultSuggestionChosen Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the user picks a suggested search result.
// Register
event_token ResultSuggestionChosen(TypedEventHandler<SearchBox, SearchBoxResultSuggestionChosenEventArgs const&> const& handler) const;
// Revoke with event_token
void ResultSuggestionChosen(event_token const* cookie) const;
// Revoke with event_revoker
SearchBox::ResultSuggestionChosen_revoker ResultSuggestionChosen(auto_revoke_t, TypedEventHandler<SearchBox, SearchBoxResultSuggestionChosenEventArgs const&> const& handler) const;
public event TypedEventHandler<SearchBox,SearchBoxResultSuggestionChosenEventArgs> ResultSuggestionChosen;
function onResultSuggestionChosen(eventArgs) { /* Your code */ }
searchBox.addEventListener("resultsuggestionchosen", onResultSuggestionChosen);
searchBox.removeEventListener("resultsuggestionchosen", onResultSuggestionChosen);
- or -
searchBox.onresultsuggestionchosen = onResultSuggestionChosen;
Public Custom Event ResultSuggestionChosen As TypedEventHandler(Of SearchBox, SearchBoxResultSuggestionChosenEventArgs)
<SearchBox ResultSuggestionChosen="eventhandler"/>