Quantcast
Channel: Silverlight 5 forum
Viewing all articles
Browse latest Browse all 1083

how to scroll to view

$
0
0


I use listbox in a view:


<ScrollViewer x:Name="scroller" >
    <ListBox x:Name="lstRemarks" ItemsSource="{Binding Remarks}" ItemTemplate="{StaticResource RemarkListItem}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled" SelectedIndex="{Binding RemarkSelectedIndex, FallbackValue=-1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ItemContainerStyle="{StaticResource ListBoxItemStyleTest1}" />
</ScrollViewer>


I am trying to synchronize scroll and the selected item,
when an item is selected the scrollviewr should scroll to the selected item so the user can see the item

I am using silverlight 5.



Viewing all articles
Browse latest Browse all 1083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>