ICoreWindow.Activated Событие

Определение

Указывает событие, которое запускается при завершении активации или деактивации окна.

// 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
ICoreWindow::Activated_revoker Activated(auto_revoke_t, TypedEventHandler<CoreWindow, WindowActivatedEventArgs const&> const& handler) const;
event TypedEventHandler<CoreWindow,WindowActivatedEventArgs> Activated;
function onActivated(eventArgs) { /* Your code */ }
iCoreWindow.addEventListener("activated", onActivated);
iCoreWindow.removeEventListener("activated", onActivated);
- or -
iCoreWindow.onactivated = onActivated;
Event Activated As TypedEventHandler(Of CoreWindow, WindowActivatedEventArgs) 

Тип события

Применяется к

См. также раздел