xamlxpsxpsviewer

XPS or XAML viewer to embed in .NET app?


Is there a viewer object or ActiveX control I can use to embed an XPS document, or an XAML GUI in my .NET application?


Solution

  • You can use the ElementHost Control to host WPF content on a .Net Windows Form.The ElementHost appears in the Toolbox under the WPF Interoperability section. You can then host a WPF control that has XPS Document Viewer on it and you've solved both problems.