Kiotto
Kiotto

Reputation: 315

horizontal ScrollView Windows Phone 7

I have a horizontal ScrollView implemented and working. however, when I Scrol horizontally he walks, but when he returns to deslargo initial position no reason for it.

Anyone know a solution?

Thanks

<ScrollViewer ScrollViewer.HorizontalScrollBarVisibility="Visible"  ScrollViewer.VerticalScrollBarVisibility="Disabled"  Height="50" Width="Auto">
   <StackPanel Name="sp_urlsHome" Orientation="Horizontal" Height="50" Width="Auto">
        <TextBlock Text="adasdasdsasdfffffffffffffffffffffffffsdfsdfsdfsdfsfsdfdas"/>
   </StackPanel>
</ScrollViewer>

Upvotes: 0

Views: 3116

Answers (1)

Ku6opr
Ku6opr

Reputation: 8126

You must set right ScrollViewer Width. Inner control will scroll only if it Width is greater that ScrollViewer Width. Check that moment, please (ScrollViewer should not resize while increasing content size)

Just posted your code into blank page and it works fine

Upvotes: 3

Related Questions