I have copied this to the Work Item so that I could add the sample you are looking for. Hopefully this will solve your problem.
To make this easier and manageable, I created a simple class, SvgHostElement
, which inherits from
object that holds the WPF control as a child, SvgCanvas (or SvgDrawingCanvas) in this case.
: I override the Designer Smart-Tag and the DesignerSerializer attributes in order to prevent an override of the Child element by the Designer.
If not, the Windows Forms Designer will set the Child of the instance of your host control (svgHostTest
in this case) to
, like the following in the generated Designer codes.
Me.svgHostTest.Child = Nothing
and you will not be able to display anything since the WPF Child control is not attached to the host control.
Finally, this type of question are not really meant for this forum, this is is a general WPF issue and by Googling you could easily find a workable solution and/or sample.