Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Zoom Factor (Read 2596 times)
vanessaF
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Sep 16th, 2010
Zoom Factor
Sep 29th, 2010 at 5:59pm
Print Post  
Hi Everyone!

I was trying to bindg the zoom factor property to a interger property.

Example : ZoomFactor="{Binding DiagramZoom}"

and I got the following error:

"Zoom factor must be a positive number"

Any idea?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Zoom Factor
Reply #1 - Sep 29th, 2010 at 6:28pm
Print Post  
Hi,

I suppose you shouldn't let the DiagramZoom value to become <= 0.

Stoyan
  
Back to top
 
IP Logged
 
vanessaF
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Sep 16th, 2010
Re: Zoom Factor
Reply #2 - Sep 29th, 2010 at 7:15pm
Print Post  
Yes of course, but I am sure that the property is working only with positive numbers, in addition the error is displayed inthe xaml view.


Do you have any idea of the funcionality of zoomfactorproperty?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Zoom Factor
Reply #3 - Sep 30th, 2010 at 7:41am
Print Post  
Yes, it does the following check:

if ((double)e.NewValue <= 0)
     throw new ArgumentException("ZoomFactor must be positive number");

Just set your DiagramZoom default value to 100, and make sure you do not assign non-positive values to it.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint