Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic why the Diagram can't field fill the whole window ? (Read 1344 times)
heyx
Junior Member
**
Offline


I Love MindFusion!

Posts: 69
Joined: Oct 9th, 2014
why the Diagram can't field fill the whole window ?
Dec 11th, 2014 at 3:16am
Print Post  
why the Diagram can't field fill the whole window when I have set the VerticalAlignment="Stretch" and HorizontalAlignment="Stretch"
and the ScrollBar(HorizontalScrollBar and VerticalScrollBar) always is hide?
Code
Select All
<Window
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 xmlns:diag="http://mindfusion.eu/diagramming/wpf"
 x:Class="EvSwitch.Window1"
 Loaded="Window_Loaded"
 Title="EvSwitch" Height="800" Width="1200" >
 <Grid>
  <diag:Diagram x:Name="diagram" Height="auto"
		Width="auto" MinWidth="1200" MinHeight="800"
		BackBrush="White" ShapeBrush="LightBlue"
		DefaultShape="Rectangle"
		VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
		GridStyle="Lines" ScrollViewer.HorizontalScrollBarVisibility="Auto"
		AutoResize="AllDirections" ScrollViewer.VerticalScrollBarVisibility="Auto"
		ShowGrid="True" />
 </Grid>
</Window>
 

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: why the Diagram can't field fill the whole window ?
Reply #1 - Dec 11th, 2014 at 8:47am
Print Post  
Diagram.MeasureOverride always returns the size of its Bounds property multiplied by zoom level and MeasureUnit scales, so try setting Bounds as big as the parent window.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint