I would like to scroll auto to the end of a textblock if I add text to it. But I try a lot of thing, but I failed hard.
Anybody has a good idea to do this on a WinRT application ?
Thanks for your time, regards.
Step 2 - Add following using
to your code
using WinRTXamlToolkit.Controls.Extensions;
Step 3 - Make following call after you add (replace really) the Text
in the TextBox
var scrollViewer = textBlock.GetFirstDescendantOfType<ScrollViewer>();
scrollViewer.ScrollToVerticalOffset(scrollViewer.ScrollableHeight);