CoreWindowResizeManager class

Applies to Windows and Windows Phone

Defines a type used to manage CoreWindow.SizeChanged events.

Syntax


public sealed class CoreWindowResizeManager

Attributes

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

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

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

See also

Object

 

 

Show:
© 2014 Microsoft