CreateXamlUIPresenter function

A static creator function that can create a XamlUIPresenter for a render surface in a desktop app.

Syntax

 static HRESULT WINAPI CreateXamlUIPresenter(
  _In_  IViewObjectPresentNotifySite                 *pPresentSite,
  _Out_ Windows::UI::Xaml::Hosting::IXamlUIPresenter **ppPresenter
);

Parameters

pPresentSite [in]

An existing hosting interface. See IViewObjectPresentNotifySite in Internet Explorer documentation.

ppPresenter [out]

The [exclusiveto] interface for a XamlUIPresenter.

Return value

A standard HResult, S_OK for success.

Remarks

Calling this method requires a DllImport from Windows.UI.Xaml.dll.

You cannot call this method from a Windows Store app.

Requirements

Requirement Value
Header
Windows.ui.xaml-coretypes.idl
DLL
Windows.UI.Xaml.dll

See also

XamlUIPresenter