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 7868567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:02:44+00:00 2026-06-03T01:02:44+00:00

I have several read only RichTextBox’s that are used for logging output. Since they’re

  • 0

I have several read only RichTextBox’s that are used for logging output. Since they’re read only they don’t seem to automatically scroll when the text is updated. I can use the TextChanged event to force a scroll to end, but is there not simply a way to set a property or something in the XAML so that scrolling happens like normal?

  • 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-06-03T01:02:45+00:00Added an answer on June 3, 2026 at 1:02 am

    I had googled for your problem and found this post.
    In the section “Programming the RichTextBox” author had described about getting the behavior what you had been expecting.

    Please check and let me know if it is of any use.


    I tried to reproduce your problem and came up with the following solution

        <Window x:Class="CheckRichTextBox.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="MainWindow" Height="170" Width="300">
        <StackPanel>
            <RichTextBox Height="100" Name="richTextBox1" IsReadOnly="True" VerticalScrollBarVisibility="Visible"/>
            <Button Name="btnAdd" Content="Click me to add text" VerticalAlignment="Bottom" Click="BtnAddClick" />
        </StackPanel>
    </Window>
    

    The code behind for the same is as below:

    using System.Windows;
    
    namespace CheckRichTextBox
    {
        /// <summary>
        /// Interaction logic for MainWindow.xaml
        /// </summary>
        public partial class MainWindow : Window
        {
            public MainWindow()
            {
                InitializeComponent();
            }
    
            private void BtnAddClick(object sender, RoutedEventArgs e)
            {
                richTextBox1.AppendText("You had Clicked the button for adding text\n");
                richTextBox1.ScrollToEnd();
            }
        }
    }
    

    This solves the problem of autoscroll, please check it and let me know if it is of any help.

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

Sidebar

Related Questions

I have several tables in my database that have read-only fields that get set
I have read several questions regarding this but I fear they may be out
I have read in several places that it's possible to share the objects directory
We have a large read only secondary database file. We have several different copies
We have several domain objects which need to support both read-only and read-write modes;
I have a DataGridView that has three read only columns in it and one
I have read several times that using catch (Exception ex) { Logger.LogError(ex); } without
I have several iFrames that load an external webpage, although only 1 appears at
I have read several articles on when to use nested classes, but none that
Possible Duplicate: Deserializing JSON into one of several C# subclasses I have read-only access

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.