Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic GridStyle updating (Read 1668 times)
pwdparis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Jan 18th, 2010
GridStyle updating
Aug 4th, 2011 at 3:21pm
Print Post  
Dear Sir/Madam,

We're having an issue with the background grid of our diagram control not updating/adjusting correctly.

We have a diagram on our page which uses the following properties (regarding grid styles):

diagram1.ShowGrid = true;
diagram1.GridStyle = MindFusion.Diagramming.Silverlight.GridStyle.Lines;
diagram1.GridDashArray = new DoubleCollection() { (double).5, 6 };
diagram1.GridColor = System.Windows.Media.Colors.Red;


Initially, the diagram's width is set at 1500px. We have functionality on the page which allows the user to view the diagram in more of fullscreen depiction; thus we change the width to 3000px. However, when we do increase the size, the background grid doesn't seem to update itself (we get white space where the diagram's background grid should be). I tried re-applying the styles as above after the size change, but this didn't fix the issue.

All help appreciated.

Mark
Goolara, LLC



  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: GridStyle updating
Reply #1 - Aug 5th, 2011 at 6:08am
Print Post  
You also need to increase the logical size of the diagram - through the Diagram.Bounds property:

Code
Select All
diagram1.Bounds = new Rect(0, 0, 3000, height); 


I hope this helps.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint