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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -