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>
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