Scrolling a TextBlock on a ScrollView to the bottom

Hey guys.

I am working on adding a scrolling TextBlock to my project. Like a chat log.
I am using a TextBlock on a ScrollView and appending text to the end of the string.
I read about changing the .top value to match the .height value but it doesn’t seem quite right.

I made an example where pressing a button adds some text.
Please see here:

How can I make it always scroll to the very bottom whenever the button gets pressed and adds a new line of text?

Here it is, you need to use the bar.value prop to define it s normalized position 0 to 1 in the allowed space.


Awesome it works!! Thank you very much Sebavan for helping me out :smiley:

1 Like