AutoSuggestBox.QuerySubmitted 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当用户提交搜索查询时发生。
// Register
event_token QuerySubmitted(TypedEventHandler<AutoSuggestBox, AutoSuggestBoxQuerySubmittedEventArgs const&> const& handler) const;
// Revoke with event_token
void QuerySubmitted(event_token const* cookie) const;
// Revoke with event_revoker
AutoSuggestBox::QuerySubmitted_revoker QuerySubmitted(auto_revoke_t, TypedEventHandler<AutoSuggestBox, AutoSuggestBoxQuerySubmittedEventArgs const&> const& handler) const;
public event TypedEventHandler<AutoSuggestBox,AutoSuggestBoxQuerySubmittedEventArgs> QuerySubmitted;
function onQuerySubmitted(eventArgs) { /* Your code */ }
autoSuggestBox.addEventListener("querysubmitted", onQuerySubmitted);
autoSuggestBox.removeEventListener("querysubmitted", onQuerySubmitted);
- or -
autoSuggestBox.onquerysubmitted = onQuerySubmitted;
Public Custom Event QuerySubmitted As TypedEventHandler(Of AutoSuggestBox, AutoSuggestBoxQuerySubmittedEventArgs)
<AutoSuggestBox QuerySubmitted="eventhandler"/>
事件类型
注解
请参阅 AutoSuggestBoxQuerySubmittedEventArgs。