CoreWindowResizeManager 클래스

정의

CoreWindow.SizeChanged 이벤트를 관리하는 데 사용되는 형식을 정의합니다. 이 형식은 프레임워크(예: XAML) 또는 자체 IFrameWorkView를 구현하는 앱에서 사용하여 셸 그리기 placholder(예: 시작 화면)와 처음 그린 앱 프레임 간의 인계를 동기화하여 한 프레임에서 다른 프레임으로 전환하는 간격이 없도록 합니다. 앱이 IFrameWorkView 자체를 구현하지 않는 경우 프레임워크에서 수행되므로 이 동기화에 참여해서는 안 됩니다.

public ref class CoreWindowResizeManager sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class CoreWindowResizeManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class CoreWindowResizeManager
Public NotInheritable Class CoreWindowResizeManager
상속
Object Platform::Object IInspectable CoreWindowResizeManager
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

CoreWindow.SizeChanged가 실행되면 정적 CoreWindowResizeManager.GetForCurrentView 메서드를 호출하여 현재 CoreWindow에 대해 이 유형의 instance 가져옵니다.

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 that we can abbreviate
    // any resize animation and prevent unnecessary delays.
    Windows::UI::Core::CoreWindowResizeManager::GetForCurrentView().NotifyLayoutCompleted();
    m_windowSizeChangeInProgress = false;
}
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;
}

속성

ShouldWaitForLayoutCompletion

호출자가 새 레이아웃이 완료되기를 기다릴지 여부를 가져오거나 설정합니다.

메서드

GetForCurrentView()

실행 중인 앱의 현재 CoreWindow에 대한 CoreWindowResizeManager의 instance 가져옵니다.

NotifyLayoutCompleted()

부모 CoreWindow 개체에 새 레이아웃이 완료되었음을 알 수 있습니다.

적용 대상