Defines a type used to manage CoreWindow.SizeChanged events.
Syntax
Attributes
- MarshalingBehaviorAttribute(Agile)
- StaticAttribute(Windows.UI.Core.ICoreWindowResizeManagerStatics, NTDDI_WIN8)
- VersionAttribute(NTDDI_WIN8)
- WebHostHiddenAttribute()
Members
The CoreWindowResizeManager class has these types of members:
Methods
The CoreWindowResizeManager class has these methods. It also inherits methods from the Object class.
| Method | Description |
|---|---|
| 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. |
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 |
|
|
Metadata |
|
See also
Build date: 2/25/2013