IWpfHostSupport

Applications that host Windows Presentation Foundation (WPF) content via PresentationHost.exe implement this interface to provide a point of integration between the host and PresentationHost.exe.

Warning

XBAPs require legacy browsers to operate, such as Internet Explorer and Firefox. These older browser versions are usually unsupported on Windows 10 and Windows 11. Modern browsers no longer support the technology required for XBAP apps due to security risks. Plugins that enable XBAPs are no longer supported. For more information, see Frequently asked questions about WPF browser-hosted applications (XBAP).

Remarks

Win32 applications such as Web browsers can host WPF content, including XAML browser applications (XBAPs) and loose XAML. To host WPF content, Win32 applications create an instance of the WebBrowser control. To be hosted, WPF creates an instance of PresentationHost.exe, which provides the hosted WPF content to the host for display in the WebBrowser control.

The integration enabled by IWpfHostSupport allows PresentationHost.exe to:

  • Discover and register with the raw input devices (Human Interface Devices) that the host application is interested in.

  • Receive input messages from the registered raw input devices and forward appropriate messages to the host application.

  • Query the host application for custom progress and error user interfaces.

Note

This API is only intended and supported for use on the local client machine

Members

Member Description
GetRawInputDevices Allows PresentationHost.exe to discover the raw input devices (Human Interface Devices) that the host application is interested in.
FilterInputMessage Called by PresentationHost.exe whenever a message is received unless E_NOTIMPL is returned.
GetCustomUI By default, PresentationHost.exe provides its own deployment progress and deployment error user interfaces that are displayed when WPF content is deployed.