Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic In a TabControl, use one or multiple DiagramView controls? (Read 2161 times)
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
In a TabControl, use one or multiple DiagramView controls?
May 17th, 2013 at 12:32am
Print Post  
I'm implementing a window with a TabControl (actaully, the DevExpress XtraTabControl, but same concept), and the idea is that each tab will have a Diagram object associated with it. So if there are three tabs there will be three Diagram objects, and only one of them will be visible and modifyable.

My question: Do you recommend placing a DiagramView control on each tab, even though only one of them will be visible? Or do you recommend having one DiagramView control and moving it to the currently-visible tab and changing the DiagramView.Diagram field to reference the Diagram object for that tab?

(I'm aware that there's a TabbedDiagramView control, but I prefer to use the DevExpress one for various reasons.)

Thanks.
  
Back to top
 
IP Logged
 
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
Re: In a TabControl, use one or multiple DiagramView controls?
Reply #1 - May 17th, 2013 at 1:09pm
Print Post  
Never mind, I've decided to "fake it" by having no tabs on the tab control, just the tab headers, and place the DiagramView control below the tab control and try to make it look like it is actually on a tab.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: In a TabControl, use one or multiple DiagramView controls?
Reply #2 - May 17th, 2013 at 1:12pm
Print Post  
I suppose this is up to your preference. I can see our developers are using a single view and changing its Diagram in TabbedDiagramView implementation.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint