DevicePicker.DeviceSelected 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.
Indicates that the user selected a device in the picker.
// 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)