Bagikan melalui


CoreWindow.Activated Kejadian

Definisi

Diaktifkan saat jendela selesai aktivasi atau pennonaktifkanan.

// Register
event_token Activated(TypedEventHandler<CoreWindow, WindowActivatedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreWindow::Activated_revoker Activated(auto_revoke_t, TypedEventHandler<CoreWindow, WindowActivatedEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreWindow,WindowActivatedEventArgs> Activated;
function onActivated(eventArgs) { /* Your code */ }
coreWindow.addEventListener("activated", onActivated);
coreWindow.removeEventListener("activated", onActivated);
- or -
coreWindow.onactivated = onActivated;
Public Custom Event Activated As TypedEventHandler(Of CoreWindow, WindowActivatedEventArgs) Implements Activated

Jenis Acara

Penerapan

Berlaku untuk