ElementCompositionPreview 클래스

정의

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

public ref class ElementCompositionPreview sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 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.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ElementCompositionPreview
Public NotInheritable Class ElementCompositionPreview
상속
Object Platform::Object IInspectable ElementCompositionPreview
특성

설명

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

메서드

GetElementChildVisual(UIElement)

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

GetElementVisual(UIElement)

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

GetPointerPositionPropertySet(UIElement)

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

GetScrollViewerManipulationPropertySet(ScrollViewer)

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

SetElementChildVisual(UIElement, Visual)

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

SetImplicitHideAnimation(UIElement, ICompositionAnimationBase)

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

SetImplicitShowAnimation(UIElement, ICompositionAnimationBase)

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

SetIsTranslationEnabled(UIElement, Boolean)

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

적용 대상