I’m using ElementHost to display WPF user control on GoDiagram nodes.
Everything works great beside the fact that I can’t change the ElementHost control to have transparent background.
To reproduce the problem open WpfWinGoView3 sample which comes with with GoDiagram 3.
Open WPFNode.cs file in that project, go to line 126 and enter the following line in it (under the initialization of the ElementHost:
host.BackColor = Color.Transparent;
now run the sample and you’ll get an exception.
That exception occurs, as I understand, during the paint process of GoDiagram control.
Please help me figure this out.