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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:01:21+00:00 2026-05-28T13:01:21+00:00

I am creating some kind of chat style application. The Listbox is getting filled

  • 0

I am creating some kind of chat style application.
The Listbox is getting filled by its ItemSource which ist a Binding to a List. “Message” is a custom class containing various properties. The ListBox contains a DataTemplate which is used to display the Message-Item properly.

I’ve got a few problems when I am using a ListBox:
1. The user can not select text.
2. The ListBox does not automatically scroll down when an item is getting added to the List.

I’d like to use something like a TextBox, but I just couldn’t figure out how to use some kind of DataTemplate and bind the Text-Property to a List. Of course, the text should be formattable.

Is there anything I can do to solve my problem? I thought about extending the ListBox-Control to a Auto-Scrolling one, but this wouldn’t solve my problem concerning text selection.

  • 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-28T13:01:22+00:00Added an answer on May 28, 2026 at 1:01 pm

    I found a solution.
    I copied the ItemTemplate and pasted it into a new ItemsControl-Control. After that I wrapped a ScrollViewer around the ItemsControl. I added an eventhandler to the ListChanged event. Inside the eventhandler I called the ScrollToBottom-Method of the ItemsControl-Wrapping ScrollViewer which Matěj Zábský posted.
    To solve the problem concerning text selection, I used a TextBox with specific properties changed.
    Any way to make a WPF textblock selectable?

    Thank you, Rachel and Matěj.

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

Sidebar

Related Questions

I'm creating some kind of auction application, and I have to decide what is
I'm creating simple application, some kind of portfolio. I've heard that it's better to
Is there some kind of tool for creating user interfaces using ATL for C/C++?
Is there some kind of a shorthand fluent interface for creating a parameters dictionary
I'm creating some basic OO scripts using MySQLi and getting an Undefined Method error
I am creating some application, facebook application and i need to ask you something.
I'm creating some scripts to streamline application installations and I need to append to
At the moment, I am creating some kind of admin panel/backend for my site.
I just started with PHP and mySQL and I'm creating some kind of blog.
I'm facing difficulty when creating some kind of a report in vfp. I created

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.