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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -