共用方式為


DevicePicker.DevicePickerDismissed 事件

定義

指出裝置選擇器已由使用者關閉。 當使用者按一下選擇器 UI 以外的位置,而選擇器 UI 消失時,就會關閉光線。

// Register
event_token DevicePickerDismissed(TypedEventHandler<DevicePicker, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
DevicePicker::DevicePickerDismissed_revoker DevicePickerDismissed(auto_revoke_t, TypedEventHandler<DevicePicker, IInspectable const&> const& handler) const;
public event TypedEventHandler<DevicePicker,object> DevicePickerDismissed;
function onDevicePickerDismissed(eventArgs) { /* Your code */ }
devicePicker.addEventListener("devicepickerdismissed", onDevicePickerDismissed);
devicePicker.removeEventListener("devicepickerdismissed", onDevicePickerDismissed);
- or -
devicePicker.ondevicepickerdismissed = onDevicePickerDismissed;
Public Custom Event DevicePickerDismissed As TypedEventHandler(Of DevicePicker, Object) 

事件類型

適用於