I implemented the presentation of several charts by the LiveChart
in ListBox.
It works well. It's displayed by wrapping charts on page space automatically. But, It's not scrollable vertically.
It's scrollable horizontaly when I set ScrollViewer.HorizontalScrollBarVisibility
as Enabled
as 1 line with a horizontal scrollbar.
But, It is not the result what i want by using the wrapPanel
.
Do you have this kind of experience? Please help me.
<StackPanel Orientation="Vertical">
<ListBox ItemSource="{Binding info}" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Width="350" Height="250">
<lvc:CartesianChart>
<lvc:LineSeries Values="{Binding data}"/>
</lvc:CartesianChart>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</StackPanel>