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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:02:36+00:00 2026-05-24T04:02:36+00:00

i am using a Panorama control. inside each PanoramaItem, i have a ListBox. the

  • 0

i am using a Panorama control. inside each PanoramaItem, i have a ListBox. the ListBox holds a bunch of TextBlock; the reason is because i am displaying very long text and from another post, i found out that wp7 has limitations when displaying long text.

for example, i have two objects defined as follows.

public class TextItem {
 public string Text { get; set; }
}

public class DisplayItem {
 public string Header { get; set; }
 public string FullHeader { get; set; }
 public List<TextItem> TextItems { get; set; }
}

my xaml to bind to a List<DisplayItem> is as follows.

<controls:Panorama ItemsSource="{Binding}">
 <controls:Panorama.HeaderTemplate>
  <DataTemplate>
   <TextBlock Text="{Binding Header}" TextWrapping="Wrap"/>
  </DataTemplate>
 </controls:Panorama.HeaderTemplate>
 <controls:Panorama.ItemTemplate>
  <DataTemplate>
   <StackPanel Orientation="Vertical">
    <TextBlock Text="{Binding FullHeader}" TextWrapping="Wrap"/>
    <ListBox ItemsSource="{Binding TextItems}">
     <ListBox.ItemTemplate>
      <DataTemplate>
       <TextBlock Text="{Binding Text}"/>
      </DataTemplate>
     </ListBox.ItemTemplate>
   </StackPanel>
  </DataTemplate>
 </controls:Panorama.ItemTemplate>
</controls:Panorama>

all the data bind properly, however, when i attempt to scroll the ListBox, it stops without ever going all the way to the bottom. the effect is to me is that “scrolling isn’t working” and “text is truncated.”

any idea on what i am doing wrong?

as a side note, i also posted a question on displaying very long text (i.e. an end-user license agreement EULA). a user responded by giving me a link to a control he made to display very long text. the post is at how many characters can a Silverlight TextBlock hold?. when i use that control and/or approach to store my long text, i get the same effect.

  • 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-24T04:02:36+00:00Added an answer on May 24, 2026 at 4:02 am

    If you have a ListBox inside a StackPanel the framework is not able to determine the height of the controls and whether scrolling should be enabled.

    Use a Grid instead of a StackPanel inside your DataTemplate.

    <DataTemplate>
      <Grid>
        <Grid.RowDefinitions>
          <RowDefinition Height="*" /> 
          <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <TextBlock Text="{Binding FullHeader}" TextWrapping="Wrap"/>
        <ListBox ItemsSource="{Binding TextItems}" Grid.Row="1">
          <ListBox.ItemTemplate>
            <DataTemplate>
              <TextBlock Text="{Binding Text}"/>
            </DataTemplate>
          </ListBox.ItemTemplate>
        </ListBox>
      </Grid>
    </DataTemplate>
    

    The above will solve your immediate problem but you should also address the design decision to include a large amount of text on a panorama.
    A panorama is not intended to display a large amount of text. Think of a panorama as being like a magazine cover. You wouldn’t include an article on the cover. You’d include a headline or image to entice the viewer/user to read more within the magazine. The same principle should be applied here. Have content (a headline/title or equivalent image) on the panorma take the user to another page where they can read the full content.

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

Sidebar

Related Questions

I'm using panorama UI in wp7. I have several panorama screen each containing ListBox.
Using online interfaces to a version control system is a nice way to have
I have started using the Windows Phone 7 Panorama & Pivot Controls for a
Using Core Data. Let's say we have models for Team and Player. Assume: -Each
I'm using a panorama control in a WP7 app. One of the PanoramaItems takes
I'm using OpenCV to match a bunch of viewpoints into a panorama. The result
I'm using a windows phone silverlight application, the default panorama template has a listbox
So I have a Panorama control and the PanoramaItems are programmatically added to the
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using PHP, I'm trying to give each specific text its own variable. I believe

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.