ElementCompositionPreview 클래스

정의

XAML 컴퍼지션 트리에서 XAML 요소를 백업하는 컴퍼지션 시각적 개체에 액세스할 수 있습니다.

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

Windows 요구 사항

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

설명

ElementCompositionPreview를 사용하면 GetElementVisual 메서드를 사용하여 XAML 요소를 지원하는 Windows.UI.Composition.Visual 개체에 액세스할 수 있습니다. 백업 개체가 검색되면 Windows.UI.Composition 네임스페이스를 사용하여 조작할 수 있습니다. 이렇게 하면 개체의 속성(예: 방향) 또는 추가 개체를 XAML 컴퍼지션 트리에 추가할 수 있습니다.

버전 기록

Windows 버전 SDK 버전 추가된 값
1703 15063 GetPointerPositionPropertySet
1703 15063 SetImplicitHideAnimation
1703 15063 SetImplicitShowAnimation
1703 15063 SetIsTranslationEnabled
1903 18362 GetAppWindowContent
1903 18362 SetAppWindowContent

메서드

GetAppWindowContent(AppWindow)

AppWindow의 콘텐츠 루트를 검색합니다.

GetContainerVisual(UIElement)

XAML 컴퍼지션 트리에서 XAML 컨테이너를 백업하는 Windows.UI.Composition.Visual 개체를 검색합니다.

GetElementChildVisual(UIElement)

SetElementChildVisual을 호출하여 이전에 설정한 Windows.UI.Composition.Visual 개체를 검색합니다.

GetElementVisual(UIElement)

XAML 컴퍼지션 트리에서 XAML 요소를 백업하는 Windows.UI.Composition.Visual 개체를 검색합니다.

GetPointerPositionPropertySet(UIElement)

UIElement를 기준으로 포인터 위치를 검색합니다.

GetScrollViewerManipulationPropertySet(ScrollViewer)

ScrollViewer 요소의 컴퍼지션 속성을 검색합니다.

SetAppWindowContent(AppWindow, UIElement)

XAML UIElement를 AppWindow의 콘텐츠 루트로 설정합니다.

SetElementChildVisual(UIElement, Visual)

사용자 지정 Windows.UI.Composition.Visual 을 요소의 시각적 트리의 마지막 자식으로 설정합니다.

SetImplicitHideAnimation(UIElement, ICompositionAnimationBase)

지정된 숨기기 애니메이션을 UIElement와 연결합니다.

SetImplicitShowAnimation(UIElement, ICompositionAnimationBase)

지정된 쇼 애니메이션을 UIElement와 연결합니다.

SetIsTranslationEnabled(UIElement, Boolean)

컴퍼지션 API를 사용하여 렌더링 시간 후 레이아웃 변환 변환을 설정, 애니메이션 및 사용하여 XAML 요소를 화면에 배치하는 기능을 전환합니다.

적용 대상