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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:15:47+00:00 2026-05-24T19:15:47+00:00

I have a data bound Listbox as shown below. I want the textblock that

  • 0

I have a data bound Listbox as shown below. I want the textblock that holds the data to wrap. And I have not been able to.

What is the problem here?

Here is my code:

    <DataTemplate x:Key="policyLbTemplate">
        <StackPanel>
            <TextBlock Text="{Binding name}" FontWeight="Bold"/>
            <TextBlock Text="{Binding description}"  TextWrapping="Wrap" />
        </StackPanel>
    </DataTemplate>

 <ListBox VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ItemsSource="{Binding Policies}"
                     ItemTemplate="{StaticResource policyLbTemplate}" 
 HorizontalContentAlignment="Stretch" />
  • 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-24T19:15:47+00:00Added an answer on May 24, 2026 at 7:15 pm

    This is most likely because there is nothing restricting the width of the TextBlock so that it is growing offscreen. Do Horizontal scrollbars appear?

    See the following related questions and try the solutions described:

    WP7 TextBlock inside a ListBox not wrapping text

    Force TextBlock to wrap in WPF ListBox

    windows phone 7 TextBlock TextWrapping not honored in listbox

    http://social.msdn.microsoft.com/forums/en-US/wpf/thread/37236ac6-05c3-4acc-baca-abc871ba64e0

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

Sidebar

Related Questions

I have a ListBox data bound to the collection of my PersonCollection class. Next,
I have two databound listboxes. The first only shows items that have been assigned
I have simple SL user control. A listbox which shows all customers and on
I am developing an Windows phone7 application, I have a .NET webservice that returns
I have a collection databound to a ListBox . What I would like to
I have 3 controls on my page ListBox A ListBox B ComboBox C ListBox
I have data comming back from web service in the form of a ObservableCollection<string>
After a lot of searching, I have not found any solution for the following
I am using Silverlight 4 and MVVM pattern for my application. I have a
I have the following simplified ViewModel public class UserViewModel : IUserViewModel { public DelegateCommand<object>

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.