CompositionTarget.GetCompositorForCurrentThread 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 스레드에 대한 Compositor 개체를 검색합니다.
public:
static Compositor ^ GetCompositorForCurrentThread();
static Compositor GetCompositorForCurrentThread();
public static Compositor GetCompositorForCurrentThread();
function getCompositorForCurrentThread()
Public Shared Function GetCompositorForCurrentThread () As Compositor
반환
이 스레드의 Compositor 개체입니다.
설명
XAML 앱에서는 ElementCompositionPreview.GetElementVisual(UIElement)을 호출하여 컴퍼지션 시각적 개체를 가져와서 시각적 개체의 상속된 Compositor 속성에서 를 가져오는 Compositor
것이 좋습니다. 에 액세스할 수 UIElement
없는 경우(예: 클래스 라이브러리에서 CompositionBrush 를 만드는 경우) 를 호출 CompositionTarget.GetCompositorForCurrentThread
하여 대신 Compositor를 가져올 수 있습니다.