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

The Archive Base Latest Questions

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

I have used a list box to display few dates. A string contains a

  • 0

I have used a list box to display few dates. A string contains a date followed by a number. And this date is written to as an item to the listbox. I have put white spaces after the date. But it has alignment problem. Is there anyway I can set tab after the date? Or is there a way to set columns for listbox?

Mon, Sep 1, 2011 26

Thu, Oct 16, 2011(longer..) 30

I cant use a grid because, the items will be dynamically generated, so the number of rows cannot be known before hand.

Is there any control with scroll bars which can display values in the above manner? There no control called the ListView in WP7 right?. No binding is used here, so i cant use the DataTemplate!! Help!!

Alfah

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

    Check the answer for this question, might be helpful because what you’re asking about can be done this way.

    UPDATE:
    In that case you’ll have to do it using c# code as follows:
    1- Add the date to a textblock:

    TextBlock t = new TextBlock();
    t.Text = _Date_;
    t.Width = 100;  // set width you want to make all date entires have the same width
    

    2- Add the number to another textblock:

    TextBlock n = new TextBlock();
    n.Text = _number_;
    n.Width = 50;  // set width you want to make all date entires have the same width
    

    3- Add them both to a stackpanel:

    StackPanel st = new StackPanel();
    st.Orientation = System.Windows.Controls.Orientation.Horizontal;
    st.Children.Add(t);
    st.Children.Add(n);
    

    4- Add the stack to the listbox:

    listBox1.Children.Add(st);
    

    And you’ll have to repeat this for every element you want to add.

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

Sidebar

Related Questions

I have a List box that I want to display a list of objects,
I have this debug tool that used Jquery UIs dialog to display some information.
I have a list of ToggleButtons being used as the ItemTemplate in a ListBox
I have used a list view that uses a grid view in WPF. I
I have a dynamic list of items that will be used to POST information
For classes that have a long list of setters that are used frequently, I
Does anyone have a list of statuses corresponding to the the icons used in
I have an application with multiple "pick list" entities, such as used to populate
Have a PHP/MySQL form with a dropdown box containing a list of 350 names.
Using Php I have wrote the drop down list box code. for Edit employee

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.