WindowsXamlManager 클래스

정의

UWP 컨트롤을 호스트하는 비 UWP 데스크톱 애플리케이션(예: WPF 또는 Windows Forms 애플리케이션)의 UWP XAML 프레임워크를 나타냅니다.

public ref class WindowsXamlManager sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.Xaml.Hosting.HostingContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class WindowsXamlManager final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.Xaml.Hosting.HostingContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class WindowsXamlManager : System.IDisposable
Public NotInheritable Class WindowsXamlManager
Implements IDisposable
상속
Object Platform::Object IInspectable WindowsXamlManager
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows Desktop Extension SDK (10.0.17763.0에서 도입되었습니다.)
API contract
Windows.UI.Xaml.Hosting.HostingContract (v3.0에서 도입되었습니다.)

설명

WindowsXamlManagerUWP XAML 호스팅 API의 일부입니다. 이 API를 사용하면 비 UWP 데스크톱 애플리케이션이 HWND(창 핸들)와 연결된 UI 요소에서 Windows.UI.Xaml.UIElement에서 파생된 모든 컨트롤을 호스트할 수 있습니다. 이 API는 WPF, Windows Forms 및 Windows API(Win32)를 사용하여 빌드된 데스크톱 애플리케이션에서 사용할 수 있습니다. 자세한 내용은 데스크톱 애플리케이션에서 UWP XAML 호스팅 API 사용을 참조하세요.

WindowsXamlManager 는 현재 스레드에서 UWP XAML 프레임워크를 초기화하는 데 사용할 수 있는 정적 InitializeForCurrentThread 메서드를 제공합니다.

메서드

Close()

WindowsXamlManager에서 사용하는 모든 리소스를 닫고 비동기적으로 해제합니다.

Dispose()

관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 애플리케이션 정의 작업을 수행합니다.

InitializeForCurrentThread()

현재 스레드에서 비 UWP 데스크톱 애플리케이션(예: WPF 또는 Windows Forms 애플리케이션)에서 UWP XAML 프레임워크를 초기화합니다.

적용 대상

추가 정보