Reputation: 4443
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
Reputation:
"myScroll" is the scroll viewer's name.
myScroll.ScrollToHorizontalOffset(myScroll.ExtentWidth);
Upvotes: 1