Page Index Toggle Pages: 1 2 3 [4]  Send TopicPrint
Very Hot Topic (More than 25 Replies) WPF (Read 46504 times)
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: WPF
Reply #45 - Dec 7th, 2007 at 4:04pm
Print Post  
Hi Stoyan

Once again thank you for the pointers - the resizeToFitItems worked a charm - one call after all work carried out and the user won't know it happened Smiley

Is it possible to programaticly create diagram links to connect items on the diagram that are not diagramNodes?

I see that when i put a break point in the LinkCreating event, a DiagramAdaptorNode is used, but it would seem this is private to the Mindfusion DLLs?
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: WPF
Reply #46 - Dec 7th, 2007 at 6:29pm
Print Post  
Hi Paul,

The control uses an attached property to associate whatever framework element you add to the diagram with its adapter node. You can get the node like this:

DiagramNode adapterNode = (DiagramNode)Diagram.GetDiagramItem(fwkElement);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: WPF
Reply #47 - Dec 14th, 2007 at 2:32pm
Print Post  
As usual, spot on - thanks.


Also, as usual, the answer precedes another question Smiley

I'm working with groups now; i can create a group via the factory method and it is created with the main node that I provide, but I can't see a way of  adding more nodes to the group as there is no 'AddNode' method - version 4 used the AttachedBojects.Add method.  Is this method missing or should items be added to groups in a different manor?


Many thanks


Paul
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: WPF
Reply #48 - Dec 14th, 2007 at 4:34pm
Print Post  
Hi Paul,

You can use the node.AttachTo(main, ...) method to add nodes to groups. This will add the node to the main's SubordinateGroup, creating the group if it hasn't been created yet.

You could also use the groups' AttachToCorner / AttachToSegment / AttachToPoint methods to add child nodes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: WPF
Reply #49 - Jan 14th, 2008 at 9:37am
Print Post  
Hi Stoyan

I see we have our dedicated WPF forum  now Smiley

Does this mean there is a WFP official beta imminent?
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: WPF
Reply #50 - Jan 14th, 2008 at 10:01am
Print Post  
Yes, we are creating the msi package now, and the first version should be available this week Smiley

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 3 [4] 
Send TopicPrint