XPS or XAML viewer to embed in .NET app?

2019-07-18 08:57发布

问题:

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

回答1:

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.



回答2:

Maybe this helps. Integrating WPF with Windows Forms