I am using WPF and MVVM. I have list that contains many items.I have bound that list to List box. Every item in list execute sequentially, after completion of first item it will automatically execute second item. My problem is that scrollBar is not moving automatically with respective item in list.I want to move scroll bar with respective item in list.
This is my property:
private List<TestItem> testItemsList;
public List<TestItem> TestItemsList
{ get { return testItemsList; }
set { SetProperty(ref testItemsList, value); } }
This is my xaml file data binding:
<ListBox x:Name="listBox" Margin="6,0.938,2.5,4.34" ItemsSource="{Binding StationProperty.TestItemsList}">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Margin="1" x:Name="BackgroundGrid">
<TextBlock Grid.Column="1" AllowDrop="True" Text="{Binding TestItemName}" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>