Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
390
xamDataChart HorizontalAlignment="Stretch" VerticalAlignment="Stretch" does not seem to work
posted

I have a xamDataChart with HorizontalAlignment="Stretch" VerticalAlignment="Stretch" inside a Grid.  Unless I set the Height and Width manually  the chart does not stretch the entire height and width of the grid cell. Any ideas why this may be? I don’t want to manually set the height and width to a fixed value.  I did not have this same issue with the xamWebChart.

 

 

<Grid x:Name="UserControlMainGrid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1">

 

<igChart:XamDataChart x:Name="xmDataChart" Grid.Row="1" Margin="0,2,0,0" Padding="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" DataContext="{Binding  GraphCollection}" Visibility="{Binding ElementName=TglSecondary, Path=IsChecked, Mode=OneWay, Converter={StaticResource visGridGraphConverter}}" Height="600"  Width="600" >

 

</Grid>

Parents
No Data
Reply
  • 30692
    Offline posted

    Hmm.. it always stretches to fill for me...

    Could you share more of the xaml surrounding the chart? Do you realize you are explicitely setting the width and height in the code you sent right?

    -Graham

Children
No Data