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

Scroll into view - list box inside a scrollbar

$
0
0

Hello,

i have a view that has a Listbox like so:

<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 the "scroll into view" and the selected item,
As in: when an item is selected the scrollviewr should scroll to the selected item so the user can see the item

i working with silverlight 5 using the Mvvm pattern, but at this point i dont even care if the solution brakes the pattern.

thank you
jony



Viewing all articles
Browse latest Browse all 1083

Trending Articles



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