Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need overload function of ZoomToRect() (Read 3774 times)
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Need overload function of ZoomToRect()
Jan 4th, 2010 at 12:59pm
Print Post  
Hi Stoyan,

In our application, we have some nodes and links in the diagram. We want to show some selected area at the center of the client area.

To select the particular region, we are creating a transparent node and using ZoomToRect() we are displaying that node(node, which actually contains the selected items).

Now problem is that, we want to display that node in the middle of the client area. One possible solution could be overloaded of ZoomToRect method i.e. diagram.ZoomToRect(Rect rect,bool isCentered);

Will you provide support for this or do you have any other idea to make this work?

Please reply.


Regards,
Anshul
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Need overload function of ZoomToRect()
Reply #1 - Jan 5th, 2010 at 1:02pm
Print Post  
Any update/Suggestion for this?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need overload function of ZoomToRect()
Reply #2 - Jan 5th, 2010 at 1:35pm
Print Post  
Hi Anshul,

ZoomToRect sets the scroll position to the rect's top-left point. If you subtract from ScrollX and ScrollY half the difference between the node's size and the diagram's visible area size, the rectangle will get centered. We can add an overloaded method for the 2.3.1 release.

Stoyan
  
Back to top
 
IP Logged
 
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Re: Need overload function of ZoomToRect()
Reply #3 - Apr 12th, 2010 at 9:29am
Print Post  
Hi Stoyan,

When can we get overload of ZoomToRect() ?

Regards,
Bala
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need overload function of ZoomToRect()
Reply #4 - Apr 22nd, 2010 at 6:32am
Print Post  
This version adds a ZoomToRect(rect, bool centered) method:
https://mindfusion.eu/_beta/diagwpf_zoom.zip
  
Back to top
 
IP Logged
 
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Re: Need overload function of ZoomToRect()
Reply #5 - Apr 26th, 2010 at 5:02am
Print Post  
Hi Stoyan,

When can we get offitial released build?

Regards,
Bala
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Need overload function of ZoomToRect()
Reply #6 - May 4th, 2010 at 8:43am
Print Post  
Hi Stoyan,

Please let us know when can we get offitial released built of Mindfusion.Diagramming.Wpf?

Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need overload function of ZoomToRect()
Reply #7 - May 4th, 2010 at 10:46am
Print Post  
Later this month.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint