windows 8 - WinRT c# - Text Block scroll auto to the end -


i scroll auto end of textblock if add text it. try lot of thing, failed hard.

anybody has idea on winrt application ?

thanks time, regards.

  • step 1 - winrt xaml toolkit nuget
  • step 2 - add following using code

    using winrtxamltoolkit.controls.extensions; 
  • step 3 - make following call after add (replace really) text in textbox

    var scrollviewer = textblock.getfirstdescendantoftype<scrollviewer>(); scrollviewer.scrolltoverticaloffset(scrollviewer.scrollableheight); 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -