Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic can I get the DiagramView which is attached with a Diagram? (Read 1359 times)
GoldyWang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 34
Joined: May 7th, 2012
can I get the DiagramView which is attached with a Diagram?
May 10th, 2012 at 7:59am
Print Post  
Since the control is based on Document/View architecture, can I know how many DiagramViews are attached with a Diagram.
   Just like: 
DiagramViewCollections views = diagram.Views;
 
by the way, are there some suggestion when custom a Diagram class?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: can I get the DiagramView which is attached with a Diagram?
Reply #1 - May 10th, 2012 at 8:25am
Print Post  
The Diagram doesn't keep track of its views nor knows anything about the DiagramView class. You can use a dictionary<Diagram, DiagramView> if you need to store this information.
  
Back to top
 
IP Logged
 
GoldyWang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 34
Joined: May 7th, 2012
Re: can I get the DiagramView which is attached with a Diagram?
Reply #2 - May 10th, 2012 at 8:47am
Print Post  
I think if the instance of class Diagram can navigate to the views it attached, then the biz logical can easily be packed in a customized Diagram derived class.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint