Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Inheriting from DiagramNode (Read 1267 times)
kpozin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Aug 19th, 2010
Inheriting from DiagramNode
Sep 7th, 2010 at 3:25pm
Print Post  
Is it possible to create custom controls that derive from DiagramNode? Or is ControlNode the only way to present custom content in a node?

So far, I've tried making a MyDiagramNode : DiagramNode. I set the content in XAML using <MyDiagramNode.Content><Grid ....>...</Grid>, but the nodes appear invisible on the diagram, and browsing the visual tree with Silverlight Spy shows an empty 0x0 ContentPresenter inside the MyDiagramNode instances.
  
Back to top
 
IP Logged
 
kpozin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Aug 19th, 2010
Re: Inheriting from DiagramNode
Reply #1 - Sep 7th, 2010 at 4:07pm
Print Post  
Never mind, I was just forgetting to call InitializeComponent() in the derived class's non-default constructor.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint