共用方式為


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) 

事件類型

備註

當視窗大小變更或下列其中一個屬性變更時,就會引發此事件:

適用於