CoreWindowResizeManager CoreWindowResizeManager CoreWindowResizeManager Class

Defines a type used to manage SizeChanged events.

Syntax

Declaration

public sealed class CoreWindowResizeManagerpublic sealed class CoreWindowResizeManagerPublic NotInheritable Class CoreWindowResizeManager

Remarks

When SizeChanged is fired, call the static 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;
}

Properties summary

Gets or sets whether the caller should wait for the new layout to complete.

Methods summary

Gets an instance of CoreWindowResizeManager for the running app's current CoreWindow.

Notifies the parent CoreWindow object that the new layout has completed.

Properties

  • ShouldWaitForLayoutCompletion
    ShouldWaitForLayoutCompletion
    ShouldWaitForLayoutCompletion
    ShouldWaitForLayoutCompletion

    Gets or sets whether the caller should wait for the new layout to complete.

    public bool ShouldWaitForLayoutCompletion { get; set; }public bool ShouldWaitForLayoutCompletion { get; set; }Public ReadWrite Property ShouldWaitForLayoutCompletion As bool

    Property Value

    • bool
      bool
      bool

      true if the caller should wait for the new layout to complete; false if it should not.

Methods

  • GetForCurrentView()
    GetForCurrentView()
    GetForCurrentView()
    GetForCurrentView()

    Gets an instance of CoreWindowResizeManager for the running app's current CoreWindow.

    public static CoreWindowResizeManager GetForCurrentView()public static CoreWindowResizeManager GetForCurrentView()Public Static Function GetForCurrentView() As CoreWindowResizeManager

    Returns

  • NotifyLayoutCompleted()
    NotifyLayoutCompleted()
    NotifyLayoutCompleted()
    NotifyLayoutCompleted()

    Notifies the parent CoreWindow object that the new layout has completed.

    public void NotifyLayoutCompleted()public void NotifyLayoutCompleted()Public Function NotifyLayoutCompleted() As void

    Remarks

    Call this method when your app has completed any changes to the window layout after a SizeChanged event, such as a screen rotation.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.StaticAttribute

Details

Assembly

Windows.UI.Core.dll