Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Finding the screen bounds inside scroll viewer (Read 1062 times)
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Finding the screen bounds inside scroll viewer
Oct 14th, 2009 at 9:53am
Print Post  
Hi Stoyan,

I am having diagram inside the scroll viewer.

I want to get the bounds(Rect) of the diagram area which is viewable.

Please suggest for this.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Finding the screen bounds inside scroll viewer
Reply #1 - Oct 14th, 2009 at 11:24am
Print Post  
Create (0,0) and (ActualWidth,ActualHeight) points and call scrollViewer.TransformToDescendant(diagram.DocumentPlane).Transform() on them.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint