Visio Guy

Visio Discussions => Programming & Code => Topic started by: AndyW on February 28, 2020, 11:07:09 AM

Title: C#, WPF & Visio Drawing Control
Post by: AndyW on February 28, 2020, 11:07:09 AM
Has anyone succeeded in getting this combination to work. I can do this with Windows Forms but was looking to use WPF for all the ribbon support.
Title: Re: C#, WPF & Visio Drawing Control
Post by: Nikolay on February 28, 2020, 03:26:51 PM
You can embed a winforms UserControl into WPF, and DrawingControl into that UserControl.

https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-an-activex-control-in-wpf

https://docs.microsoft.com/en-us/office/vba/visio/concepts/about-using-the-visio-drawing-control-in-your-application