I am a SciChart beginner (and a wpf beginner too) so I apologize if this is a dumb question. I place a chart inside a user control – see xaml below. The background color is set to white to distinguish it from the chart area. When I run my app, the chart is small and in the center of the grid with a large white background around it. How can I get the chart to fill the entire space? There are many properties that can be set and it’s not clear to me what to do. I’ve attached a pdf snapshot of my application window showing the problem. Thanks for your help.
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<s:SciChartSurface Grid.Row="0" BorderThickness="1" Background="AntiqueWhite" ChartTitle="Name">
<s:SciChartSurface.RenderableSeries>
<s:FastLineRenderableSeries DataSeries="{Binding EcgDataSeries}" SeriesColor="#FFB3E8F6" StrokeThickness="2"/>
</s:SciChartSurface.RenderableSeries>
<s:SciChartSurface.YAxis>
<s:NumericAxis
MaxAutoTicks="5"
DrawMinorGridLines="True"
VisibleRange="{Binding YVisibleRange, Mode=TwoWay}"/>
</s:SciChartSurface.YAxis>
<!-- Define the XAxis -->
<s:SciChartSurface.XAxis>
<s:NumericAxis
MaxAutoTicks="5"
DrawMinorGridLines="True"
VisibleRange="{Binding XVisibleRange, Mode=TwoWay}"/>
</s:SciChartSurface.XAxis>
</s:SciChartSurface>
</Grid>
- Gary Arnold asked 9 years ago
- last active 9 years ago