Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Docking a diagram (Read 1705 times)
ski
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Oct 15th, 2008
Docking a diagram
Oct 15th, 2008 at 3:44pm
Print Post  
Hi, I am new to WPF and am trying to dock a Wpfdiagram inside a ScrollViewer so that resizing the window also resizes the diagram. The diagram can be bigger than the ScrollViewer window, but should never be smaller. It seems like it should be simple, what am I missing?

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Docking a diagram
Reply #1 - Oct 16th, 2008 at 11:16am
Print Post  
It seems the scroll viewer does not assign to the control it contains more space than the size returned by the control's Measure method. You could try handling the SizeChanged event of the viewer and resize diagram.Bounds if DocToClient(Bounds) is smaller than the available size.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint