Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ZoomToRect does not work as expected (Read 3525 times)
bogdip
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 70
Joined: Sep 8th, 2008
ZoomToRect does not work as expected
Oct 20th, 2014 at 11:33am
Print Post  
Hello,

I've been using the DiagramView.ZoomToRect() method in the previous WinForms Diagram version.
In the current WPF version, the corresponding Diagram.ZoomToRect() method seems to have a bug as it does not zoom to the selected bounds.

I attach a sample project. Please select a region above a node and see no zooming happening.

What am I missing?

Thanks,
Bogdan
  

WPFDiagramInsideWinForm_002.rar (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ZoomToRect does not work as expected
Reply #1 - Oct 21st, 2014 at 10:38am
Print Post  
Hi,

It does not work because DiagramView.ZoomFactor overrides Diagram.ZoomFactor. We'll add corresponding ZoomToRect method to DiagramView for next release.

Stoyan
  
Back to top
 
IP Logged
 
bogdip
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 70
Joined: Sep 8th, 2008
Re: ZoomToRect does not work as expected
Reply #2 - Oct 22nd, 2014 at 5:18am
Print Post  
Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ZoomToRect does not work as expected
Reply #3 - Oct 24th, 2014 at 9:24am
Print Post  
This version adds ZoomToRect, ZoomToFit, ZoomIn, ZoomOut methods to DiagramView:

https://mindfusion.eu/_beta/wpfdiag.3.2.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
bogdip
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 70
Joined: Sep 8th, 2008
Re: ZoomToRect does not work as expected
Reply #4 - Nov 11th, 2014 at 1:26pm
Print Post  
Thanks,  it would be great also if the DiagramView.ZoomFactor property would be a dependency property, like Diagram.ZoomFactor is.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ZoomToRect does not work as expected
Reply #5 - Nov 11th, 2014 at 6:20pm
Print Post  
It's a dependency property now:
https://mindfusion.eu/_beta/wpfdiag.3.2.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
bogdip
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 70
Joined: Sep 8th, 2008
Re: ZoomToRect does not work as expected
Reply #6 - Nov 12th, 2014 at 12:03pm
Print Post  
Thanks, it's a good thing that we have it as DP.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint