Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Issue with WpfDiagram and attached nodes (Read 1819 times)
Bit_Buckets
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jun 25th, 2010
Issue with WpfDiagram and attached nodes
Jun 25th, 2010 at 5:15pm
Print Post  
Hi all,

I'm new to this control (working through an evaluation) and I'm running into a strange issue that I'm hoping someone has seen and knows how to address. 

I've implemented drag/drop functionality to render nodes on the diagram surface, and I'm attaching a node to the main node in order to show a caption of the item name directly below the main node (which is just an image).

What I'm seeing is that some captions correctly display and others don't.  In debugging the code, the attached node's text property is always set correctly, and no exception is thrown.

Is this a known issue? 

Regards,
Bryan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issue with WpfDiagram and attached nodes
Reply #1 - Jun 25th, 2010 at 5:24pm
Print Post  
Hi,

Are you calling the attached node's ResizeToFitText method after setting the Text?

If you don't mind using a beta version, you might try TemplatedNodes from this build:
http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=127727368...
E.g. the template could define an Image and TextBlock inside a vertical StackPanel to show image with a caption below.

Regards,
Stoyan
  
Back to top
 
IP Logged
 
Bit_Buckets
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jun 25th, 2010
Re: Issue with WpfDiagram and attached nodes
Reply #2 - Jun 25th, 2010 at 5:36pm
Print Post  
Thanks for the quick response.  That solved the problem! 

I'll pick up the beta and explore the TemplatedNodes approach as well.

Thanks again!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint