Ievgen
Ievgen

Reputation: 4443

Silverlight ScrollViewer or HorizontalScrollBar

I have ScrollViewer and child Stack panel. I need my HorizontalScrollBar automatically scroll right when content added. How to do this? Items to stack panel added dynamically. P.s. i am trying to use this.scrollViewer.ScrollToRight(); but it not always scrolls to end.

Upvotes: 2

Views: 348

Answers (1)

user623892
user623892

Reputation:

"myScroll" is the scroll viewer's name.

myScroll.ScrollToHorizontalOffset(myScroll.ExtentWidth);

Upvotes: 1

Related Questions