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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:16:22+00:00 2026-05-28T16:16:22+00:00

I have a list of objects bound to a ListView in Windows Phone 7

  • 0

I have a list of objects bound to a ListView in Windows Phone 7 and have bound it as follows:

<ListBox Height="595" HorizontalAlignment="Left" Margin="9,6,0,0" Name="lst_Today"  VerticalAlignment="Top" Width="441" ScrollViewer.VerticalScrollBarVisibility="Visible" SelectionChanged="lst_Today_SelectionChanged" ItemsSource="{Binding}" >
                    <ListBox.ItemTemplate>                            
                        <DataTemplate>                                
                            <StackPanel Orientation="Horizontal">                                    
                                <TextBlock Text="{Binding Name}"></TextBlock>
                                <TextBlock Text="{Binding StartTime}"></TextBlock>
                            </StackPanel>                                
                        </DataTemplate>                            
                    </ListBox.ItemTemplate>
                </ListBox>

I get an output that looks like this

Name118:00

Name219:00

Name313:00
.

.

.

.

.

I’d like to add some spacing between the two properties (i.e. name and start time) and potentially add column headers to the list so that the result looks like this:

Name StartTime

Name1 18:00

Name2 19:00

Name3 13:00
.

.

.

.

Is this possible using a listview or should I be using something else like a Grid?

Thanks!

  • 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-28T16:16:23+00:00Added an answer on May 28, 2026 at 4:16 pm
    <Grid Height="500">
    
     <Grid.RowDefinitions>
          <RowDefinition Height="50"/>
          <RowDefinition Height="100*"/>
     </Grid.RowDefinitions>
     <Grid.ColumnDefinitions>
          <ColumnDefinition Width="100"/>
          <ColumnDefinition Width="100"/>
      </Grid.ColumnDefinitions>
    
    
       <TextBlock Text="Name" Grid.Row="0" Grid.Column="0" Padding="10" />
       <TextBlock Text="Start Time" Grid.Row="0" Grid.Column="1" Padding="10" />
    
       <ListBox Height="595" HorizontalAlignment="Left" Margin="9,6,0,0" Name="lst_Today"  VerticalAlignment="Top" Width="441" Grid.Row="1" Grid.ColumnSpan="2">
        .......
       </listBox>
    
    
    </Grid>
    

    Try this one, i think it helps to you…

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

Sidebar

Related Questions

So, I have a ListBox which is bound to a list of business objects,
So I have a list of objects containing a name and number bound to
In have a list of objects bound to a ListView that is used to
I have a ComboBox with a list of objects bound to it. Currently i
I have a DataGridView that is bound to a list of objects called BaseChange.
I have a List of objects and a ListView where I display this list.
I have a list of Accommodation objects bound to a Repeater, and then a
I have a list of objects displayed in an NSTableView (bound to an NSArrayController).
I have a list of objects (of type 'TrackedSet') that is data bound to
I have a collection of objects (List) that is bound to a datagridview. How

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.