ICoreWindow.SizeChanged Event

Definition

Specifies the event that raises when the window size is changed.

// 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) 

Event Type

TypedEventHandler<CoreWindow,WindowSizeChangedEventArgs>

Remarks

This event fires when the window size changes or when one of the following properties changes:

Applies to