Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Expand the Diagram to fill the ScrollViewer? (Read 1453 times)
chris
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 1st, 2008
Expand the Diagram to fill the ScrollViewer?
Oct 21st, 2008 at 3:54pm
Print Post  
When I try to put a Diagram control inside a ScrollViewer and enlarge the window, the ScrollViwer expands but the Diagram can not fill the ScrollViewer.

I tried almost all your samples. They all leave some big margin between the Diagram control and the ScrollViewer when the containing window is enlarged.

Thanks a lot!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Expand the Diagram to fill the ScrollViewer?
Reply #1 - Oct 21st, 2008 at 4:30pm
Print Post  
The Diagram.Bounds value acts as MaxWidth and MaxHeight constraints, and I don't think you can implement that through xaml. You would have to change the Bounds value through code in response to some event of the ScrollViewer (e.g. SizeChanged) and in the handler set a Bounds value large enough to cover all of the viewer surface.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint