Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Masking Diagram while it is arranged (Read 3266 times)
lutz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Aug 26th, 2009
Masking Diagram while it is arranged
Aug 26th, 2009 at 10:15am
Print Post  
Hi there,

i am searching for a way to mask the diagram while the different nodes and links are loaded and arranged for i don't want the user to see every step of this process.

Thank you in advance
Lutz
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Masking Diagram while it is arranged
Reply #1 - Aug 26th, 2009 at 11:52am
Print Post  
Hi Lutz,

If you mean this for applet mode, call the suspendRepaint() and resumeRepaint() methods of DiagramView. You can see them used in the onGotNames function in the OrgBrowser example.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
lutz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Aug 26th, 2009
Re: Masking Diagram while it is arranged
Reply #2 - Aug 26th, 2009 at 12:48pm
Print Post  
Hi Stoyan,

i'm adding a MindFusion.Diagramming.Wpf.DiagramView object containing the diagram to a System.Windows.Controls.DockPanel and in that case there are no such methods defined in DiagramView.

It would be very kind, if you could give me a hint for this case.

Thx
Lutz
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Masking Diagram while it is arranged
Reply #3 - Aug 26th, 2009 at 12:53pm
Print Post  
Oh, I didn't notice this is for the WPF control. Are you adding the items from a timer?
  
Back to top
 
IP Logged
 
lutz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Aug 26th, 2009
Re: Masking Diagram while it is arranged
Reply #4 - Aug 26th, 2009 at 1:01pm
Print Post  
No.

I have tested the Opacity property of UIElement for my purpose, but it didn't work.

Next i have tried it with two views using InactiveOpacity = 0.0 and activating one of them after loading, but it didn't work.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Masking Diagram while it is arranged
Reply #5 - Aug 26th, 2009 at 1:53pm
Print Post  
I have never seen the diagram appearance being updated while elements are added from a loop; could you post you xaml and C# item-loading code here? In any case, you could add the Diagram to the WPF visual tree only after all items have been added to it.

Stoyan
  
Back to top
 
IP Logged
 
lutz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Aug 26th, 2009
Re: Masking Diagram while it is arranged
Reply #6 - Aug 26th, 2009 at 1:58pm
Print Post  
yes, that is what i am currently implementing.

Thank you anyway
Lutz
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint