DevicePicker.DevicePickerDismissed 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指出裝置選擇器已由使用者關閉。 當使用者按一下選擇器 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)
事件類型
TypedEventHandler<DevicePicker,IInspectable>