Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WindowSizeChangedEventArgs class

Contains the argument returned by a window size change event.

Syntax


public sealed class WindowSizeChangedEventArgs : ICoreWindowEventArgs

Members

The WindowSizeChangedEventArgs class has these types of members:

Methods

The WindowSizeChangedEventArgs class inherits methods from the Object class.

Properties

The WindowSizeChangedEventArgs class has these properties.

PropertyAccess typeDescription

Handled

Read/write

Gets or sets whether the window size event was handled.

Size

Read-only

Gets the new size of the window in units of effective (view) pixels.

 

Remarks

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



// 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 (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Core
Windows::UI::Core [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8

Namespace

Windows.UI.Core
Windows::UI::Core [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Standard)]
[Version(0x06020000)]
[WebHostHidden()]

See also

Object
ICoreWindowEventArgs

 

 

Show: