Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Force to update diagram view (Read 2442 times)
Kyle Chen
Full Member
***
Offline


I Love MindFusion!

Posts: 104
Joined: Nov 29th, 2012
Force to update diagram view
Dec 3rd, 2012 at 9:39pm
Print Post  
Hi,

I changed the background of some grid lane at runtime(only row header created and HookHeaders=true to just show some information) but the diagramview not updated correctly. Only partial or lane got repainted. Is it a problem or is any workaround like any way to force the whole diagram redrawn? Thanks.

« Last Edit: Dec 4th, 2012 at 2:44pm by Kyle Chen »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Force to update diagram view
Reply #1 - Dec 4th, 2012 at 7:04am
Print Post  
Hi,

If you are changing the grid settings while some item is being moved ot resized, call the DiagramView.RecreateCacheImage() method. Otherwise call DiagramView.Invalidate().

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Kyle Chen
Full Member
***
Offline


I Love MindFusion!

Posts: 104
Joined: Nov 29th, 2012
Re: Force to update diagram view
Reply #2 - Dec 4th, 2012 at 2:44pm
Print Post  
Excellent! diagramView.Invalidate() solved the problem. Thank you Stoyan, you're Mr. Solution!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Force to update diagram view
Reply #3 - Dec 4th, 2012 at 3:21pm
Print Post  
Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint