DevicePicker.DeviceSelected 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指出使用者在選擇器中選取裝置。
// Register
event_token DeviceSelected(TypedEventHandler<DevicePicker, DeviceSelectedEventArgs const&> const& handler) const;
// Revoke with event_token
void DeviceSelected(event_token const* cookie) const;
// Revoke with event_revoker
DevicePicker::DeviceSelected_revoker DeviceSelected(auto_revoke_t, TypedEventHandler<DevicePicker, DeviceSelectedEventArgs const&> const& handler) const;
public event TypedEventHandler<DevicePicker,DeviceSelectedEventArgs> DeviceSelected;
function onDeviceSelected(eventArgs) { /* Your code */ }
devicePicker.addEventListener("deviceselected", onDeviceSelected);
devicePicker.removeEventListener("deviceselected", onDeviceSelected);
- or -
devicePicker.ondeviceselected = onDeviceSelected;
Public Custom Event DeviceSelected As TypedEventHandler(Of DevicePicker, DeviceSelectedEventArgs)