Windows Dev Center

CoreWindowResizeManager class

Defines a type used to manage CoreWindow.SizeChanged events.

Syntax


public sealed class CoreWindowResizeManager

Members

The CoreWindowResizeManager class has these types of members:

Methods

The CoreWindowResizeManager class has these methods. It also inherits methods from the Object class.

MethodDescription
GetForCurrentView Gets an instance of CoreWindowResizeManager for the running app's current CoreWindow.
NotifyLayoutCompleted Notifies the parent CoreWindow object that the new layout has completed.

 

Properties

The CoreWindowResizeManager class has these properties.

PropertyAccess typeDescription

ShouldWaitForLayoutCompletion

Read/writeGets or sets whether the caller should wait for the new layout to complete.

 

Remarks

When CoreWindow->SizeChanged is fired, call the static CoreWindowResizeManager::GetForCurrentView method to obtain an instance of this type for the current CoreWindow.



if (m_windowSizeChangeInProgress)
{
	// A window size change has been initiated and the app has just completed presenting
	// the first frame with the new size. Notify the resize manager so we can abbreviate
	// any resize animation and prevent unnecessary delays.
	CoreWindowResizeManager::GetForCurrentView()->NotifyLayoutCompleted();
	m_windowSizeChangeInProgress = false;
}

Requirements (Windows 10 device family)

Device family

Universal

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(Agile)]
[Version(0x06020000)]
[WebHostHidden()]

See also

Object

 

 

Show:
© 2015 Microsoft