ComboBox.TextSubmitted 事件

定义

当用户提交与 ComboBox 下拉列表中的项目不对应的某些文本时发生。

// Register
event_token TextSubmitted(TypedEventHandler<ComboBox, ComboBoxTextSubmittedEventArgs const&> const& handler) const;

// Revoke with event_token
void TextSubmitted(event_token const* cookie) const;

// Revoke with event_revoker
ComboBox::TextSubmitted_revoker TextSubmitted(auto_revoke_t, TypedEventHandler<ComboBox, ComboBoxTextSubmittedEventArgs const&> const& handler) const;
public event TypedEventHandler<ComboBox,ComboBoxTextSubmittedEventArgs> TextSubmitted;
function onTextSubmitted(eventArgs) { /* Your code */ }
comboBox.addEventListener("textsubmitted", onTextSubmitted);
comboBox.removeEventListener("textsubmitted", onTextSubmitted);
- or -
comboBox.ontextsubmitted = onTextSubmitted;
Public Custom Event TextSubmitted As TypedEventHandler(Of ComboBox, ComboBoxTextSubmittedEventArgs) 

事件类型

Windows 要求

设备系列
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)

适用于