ICoreWindow.SizeChanged 事件

定义

指定在窗口大小更改时引发的事件。

// Register
event_token SizeChanged(TypedEventHandler<CoreWindow, WindowSizeChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ICoreWindow::SizeChanged_revoker SizeChanged(auto_revoke_t, TypedEventHandler<CoreWindow, WindowSizeChangedEventArgs const&> const& handler) const;
event TypedEventHandler<CoreWindow,WindowSizeChangedEventArgs> SizeChanged;
function onSizeChanged(eventArgs) { /* Your code */ }
iCoreWindow.addEventListener("sizechanged", onSizeChanged);
iCoreWindow.removeEventListener("sizechanged", onSizeChanged);
- or -
iCoreWindow.onsizechanged = onSizeChanged;
Event SizeChanged As TypedEventHandler(Of CoreWindow, WindowSizeChangedEventArgs) 

事件类型

注解

当窗口大小更改或以下属性之一发生更改时,将触发此事件:

适用于