WindowSizeChangedEventArgs Class

Contains the argument returned by a window size change event.

Syntax

public ref class WindowSizeChangedEventArgs sealed : ICoreWindowEventArgs  

Remarks

This object is returned by a delegate registered for the CoreWindow.SizeChanged event.

Example

C++

// returning window size change events data through WindowSizeChangedEventArgs

void MyCoreWindowEvents::SetWindow( // implementation called by CoreApplication::Run(), provided for context
    _In_ CoreWindow^ window
    )
{
   
    // ...
    window->SizeChanged +=
        ref new TypedEventHandler<CoreWindow^, WindowSizeChangedEventArgs^>(this, &CoreWindowEvents::OnWindowSizeChanged)

    // ...
   
}  

Note

This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX).

Requirements

Namespace: Windows.UI.Core

Metadata: windows.winmd

See also

Reference

WindowSizeChangedEventArgs Members

Windows.UI.Core Namespace