This question is locked. New answers and comments are not allowed.
Hi,
Here's a repro app : a long table of values (200 values=8000pixels) that I can horizontally scroll.
I'd like to put below a chart using those figures. Everything works great except that it renders poorly : my series is totally aliased with the stretching.
<
ScrollViewer
HorizontalScrollMode
=
"Enabled"
HorizontalScrollBarVisibility
=
"Auto"
VerticalScrollMode
=
"Disabled"
VerticalScrollBarVisibility
=
"Disabled"
>
<
StackPanel
>
<
ItemsControl
x:Name
=
"Items"
ItemsSource
=
"{Binding Path=DataSource}"
>
<
ItemsControl.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Vertical"
Width
=
"40"
>
<
TextBlock
Text
=
"{Binding Path=Category}"
/>
<
TextBlock
Text
=
"{Binding Path=Value}"
/>
</
StackPanel
>
</
DataTemplate
>
</
ItemsControl.ItemTemplate
>
<
ItemsControl.ItemsPanel
>
<
ItemsPanelTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
/>
</
ItemsPanelTemplate
>
</
ItemsControl.ItemsPanel
>
</
ItemsControl
>
<
chart:RadCartesianChart
>
<
chart:RadCartesianChart.HorizontalAxis
>
<
chart:CategoricalAxis
/>
</
chart:RadCartesianChart.HorizontalAxis
>
<
chart:AreaSeries
ItemsSource
=
"{Binding Path=DataSource}"
>
<
chart:AreaSeries.VerticalAxis
>
<
chart:LinearAxis
Minimum
=
"0"
Maximum
=
"100"
Visibility
=
"Collapsed"
/>
</
chart:AreaSeries.VerticalAxis
>
<
chart:AreaSeries.CategoryBinding
>
<
chart:PropertyNameDataPointBinding
PropertyName
=
"Category"
/>
</
chart:AreaSeries.CategoryBinding
>
<
chart:AreaSeries.ValueBinding
>
<
chart:PropertyNameDataPointBinding
PropertyName
=
"Value"
/>
</
chart:AreaSeries.ValueBinding
>
</
chart:AreaSeries
>
</
chart:RadCartesianChart
>
<
TextBlock
Text
=
"{Binding Path=ActualWidth, ElementName=Items}"
/>
</
StackPanel
>
</
ScrollViewer
>
What can I do make it work correctly ?