Apr 14, 2011 at 2:18 PM
Edited Apr 18, 2011 at 6:06 PM
I am having a similar issue. I basically took the example (from youtube), created a WPF User Control. I then took that user control and added it to a Win Form using an ElementHost. Everything compiles and it debugs, however when the control
is displayed on the WinForm the actual nodes aren't visible. The nodes may be drawn somewhere on the graph but I cannot see them.
Any suggestions on what could be happening are most welcome. If I find a solution I'll post it here.
I had a very stupid mistake in my code. Add the below to your partial class for the WPF User Control:
DataContext = this;
Adding the above line should allow the graph to grab the data you're attempting to use (ie: if you're creating the data manually like I did in my test). Hopefully this helps someone.