WPF ScrollViewer default starting position

  • Thread starter Thread starter Savage
  • Start date Start date
S

Savage

I have a ScrollViewer that contains a TextBlock like so:

<ScrollViewer HorizontalScrollBarVisibility="Auto" Grid.Row="1">

<TextBlock Margin="0,10,0,0" Name="tbContent" />

</ScrollViewer>

The TextBlock is bound to a dependency property and is updated whenever the
content of a file is changed. Typically the file changes by having text
appended to it's end. I would like to see this change in the TextBlock
without having to scroll to the end everytime it is updated. What I would
like is to have the default position of the ScrollViewer at the end of the
content instead of the beginning. Is this possible? If not, is there so
other possible solution that would let me view content from end to
beginning?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top