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

  • Home
  • SEARCH
  • 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 97873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:05:17+00:00 2026-05-11T00:05:17+00:00

In silverlight 2.0. I have some content that i want to scroll vertically and

  • 0

In silverlight 2.0. I have some content that i want to scroll vertically and wrap horizontally. In the controls I have a dock panel. The DockPanel’s last child, which fills it, is a ScrollViewer

<UserControl x:Class='MyProject.MyControl'     xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'      xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'      xmlns:WinControls='clr-namespace:Microsoft.Windows.Controls;       assembly=Microsoft.Windows.Controls'      Width='400' Height='300'>     <WinControls:DockPanel LastChildFill='True'>     ... <ScrollViewer x:Name='MessageScroll' HorizontalScrollBarVisibility='Hidden'      VerticalScrollBarVisibility='Auto' BorderThickness='0' >     <Controls:TextDisplay x:Name='TextDisplay'></Controls:TextDisplay> </ScrollViewer> 

The TextDisplay control XAML looks like this:

<UserControl x:Class='MyProject.TextDisplay'     xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'      xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>         <TextBlock x:Name='TextDisplayText' TextWrapping='Wrap'>         </TextBlock> </UserControl> 

What I want to happen: The TextDisplay should occupy the main area of the control, with a vertical scrollbar if the height doesn’t fit. The messages should wrap when they get too long horizontally.

The scrolling works, but now the messages don’t wrap at the right-hand edge. they just cut off. It’s not constraining the width, just hiding the HorizontalScrollBar. If I set HorizontalScrollBarVisibility=’Auto’ I can see them scrolling off to the right. How do i force it to wrap?

  • 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. 2026-05-11T00:05:17+00:00Added an answer on May 11, 2026 at 12:05 am

    Try setting the HorizontalScrollBarVisibility of the ScrollViewer to Disabled (or do not specify a value as Disabled is the default) then the TextDisplay will wrap correctly and the horizontal scroll bar will not be displayed.

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

Sidebar

Ask A Question

Stats

  • Questions 65k
  • Answers 65k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Your best bet is either to run devenv.exe (or devenv.com)… May 11, 2026 at 11:10 am
  • added an answer The value of ar.AsyncState is the value of result when… May 11, 2026 at 11:10 am
  • added an answer I think this was a bug in Firefox 2 which… May 11, 2026 at 11:10 am

Related Questions

In silverlight 2.0. I have some content that i want to scroll vertically and
Is it possible to do image processing in silverlight 2.0? What I want to
If I avoid referencing assemblies that don't exist in the silverlight 2.0 runtime, will
I have a control in Silverlight 2 that changes state during the application. When
I'm struggling to understand Dependency Properties in Silverlight 2. Does anybody have a good
Anyone found a good pattern for getting around immutable styles in Silverlight 2? What
Anyone know how to create a routed event in Silverlight 2? In WPF, the
I am creating a Control Template for the Button control in Silverlight 2. I
I am working on creating a tag cloud in Silverlight 2 and trying to
I've seen examples in silverlight where the achieve a effect using 1 of 2

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.