Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic sample source code demonstrates zoom in/zoom out in a diagram (Read 1329 times)
Shiju
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: Jun 29th, 2012
sample source code demonstrates zoom in/zoom out in a diagram
Aug 2nd, 2012 at 8:50am
Print Post  
Please provide a sample source code which demonstrates zoom in/zoom out functionality in diagram.
Also i want to know how to store this zoom state

thanks,
Shiju
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: sample source code demonstrates zoom in/zoom out in a diagram
Reply #1 - Aug 2nd, 2012 at 11:17am
Print Post  
You could check the OnMouseWheel handler in the FractalLayout sample project.

ZoomFactor is not saved by SaveToXml. You could use SaveToXml(XmlDocument) and LoadFromXml(XmlDocument) methods to append additional information such as zoom state to the XML document. Or as an easier solution, set diagram.Tag = ZoomFactor before saving and ZoomFactor = (double)diagram.Tag after loading (if you aren't already using Tag for something else).

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