Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to redraw (update) a diagram (Read 2135 times)
Olejan
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Apr 5th, 2016
How to redraw (update) a diagram
Apr 7th, 2016 at 7:56am
Print Post  
Hello everybody!

I have a diagram with nodes and additional text in them. And I need show and hide this additional text by push the button. How can I update diagram or redraw it? Can I redraw all nodes manually by calling DrawNode function, or Diagram class has some method to update it?
If someone knows how to do it, please help me
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: How to redraw (update) a diagram
Reply #1 - Apr 7th, 2016 at 8:57am
Print Post  
Hi!

Call node's Repaint method if you need to run custom-draw event handler. Repaint calls InvalidateVisual and WPF redraws the node asynchronously in a while.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Olejan
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Apr 5th, 2016
Re: How to redraw (update) a diagram
Reply #2 - Apr 7th, 2016 at 9:42am
Print Post  
Thank's a lot, it works
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint