Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7670643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:52:09+00:00 2026-05-31T15:52:09+00:00

<ScrollViewer VerticalScrollBarVisibility=Auto > <TextBlock Text={Binding Status} HorizontalAlignment=Center /> </ScrollViewer> The Status always I’m adding

  • 0
<ScrollViewer VerticalScrollBarVisibility="Auto" >
 <TextBlock Text="{Binding Status}"
            HorizontalAlignment="Center" />
</ScrollViewer>

The Status always I’m adding to it, that is to say that in the code behind always I do this thing:

Status+= Environment.NewLine + "Hi";

And the ScrollViewer increasing, but the Status that I see is the first one, when I want to see the last one I need to scroll underneath to see it, my question is: how I can made the Scrollviewer scrolling underneath automaticaly?, that meaning I want always see the last status not the first.

Sorry about the broken english.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:52:11+00:00Added an answer on May 31, 2026 at 3:52 pm

    Name your ScrollViewer so you can access it in the code behind, like this:

    <ScrollViewer x:Name="MyScrollViewer" VerticalScrollBarVisibility="Auto" >
     <TextBlock Text="{Binding Status}"
            HorizontalAlignment="Center" />
    </ScrollViewer>
    

    Then you can do this:

    Status+= Environment.NewLine + "Hi";
    MyScrollViewer.ScrollToEnd(); 
    

    With the way I do MVVM, I have access to my ViewModel from my View, so when the View first loads, I’d subscribe to the PropertyChanged event on my ViewModel as so:

    MyViewModel.PropertyChanged += ViewModelChanged;
    

    and then in the ViewModelChanged callback I’d have this:

    private void ViewModelChanged(object sender, PropertyChangedEventArgs e)
    {
        if (e.PropertyName == "Status")
            MyScrollViewer.ScrollToEnd();
    }
    

    Every time the ViewModel’s Status property changes, the ScrollViewer will now scroll to end. Just remember to unsubscribe from MyViewModel.PropertyChanged when you leave that screen to avoid a memory leak.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this listbox- <ListBox ScrollViewer.VerticalScrollBarVisibility=Hidden ScrollViewer.HorizontalScrollBarVisibility=Hidden MaxHeight=80 Width=Auto Name=listbox ItemsSource={Binding Text} Style={StaticResource Textblockstyle}
I have a TextBlock, like this one: <ScrollViewer HorizontalScrollBarVisibility=Disabled VerticalScrollBarVisibility=Auto> <TextBlock Name=PatchNotesTxt Width=291 Height=226
<ScrollViewer VerticalScrollBarVisibility=Auto CanContentScroll=True> <StackPanel Name=basePanel Orientation=Vertical Height=450 /> </ScrollViewer> This is the code for
I have an ScrollViewer that I am trying to do data binding on the
I am developing a Silverlight application which has a list <ListBox x:Name=_list_collection SelectionChanged=SelectionChanged ScrollViewer.VerticalScrollBarVisibility=Auto
I've got a page with the following XAML in my application. <ScrollViewer VerticalScrollBarVisibility=Auto> <toolkit:WrapPanel
Why won't this support horizontal scrolling? <ScrollViewer> <ItemsControl ItemsSource={Binding Territories} HorizontalAlignment=Left> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel
I have a StackPanel inside of a ScrollViewer. I have a slider that does
I have a Silverlight 4 out-of-browser application with a ScrollViewer that has several RichTextBoxes
Is it possible to create a Trigger that is triggered based on a ScrollViewer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.