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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:59:00+00:00 2026-05-23T23:59:00+00:00

I want to display the data extracted before in a customized list, but the

  • 0

I want to display the data extracted before in a customized list, but the method i found to extract that data doesn’t make things easy for me , so i would find a way to display my data without changing the xml reading method.
This is how i want my list to be(xml):

 <ListBox Height="516" HorizontalAlignment="Left" Margin="16,74,0,0" Name="listBox1" VerticalAlignment="Top" Width="430" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" Height="132">
                        <Image Source="{Binding  wkpinImage}" Height="73" Width="73" VerticalAlignment="Top" Margin="0,10,8,0"/>
                        <StackPanel Width="370">
                            <TextBlock Text="{Binding Day}" Foreground="#FFC8AB14" FontSize="28" />
                            <TextBlock Text="{Binding Low}" TextWrapping="Wrap" FontSize="24" />
                            <TextBlock Text="{Binding High}" TextWrapping="Wrap" FontSize="24" />
                            <TextBlock Text="{Binding Condition}" TextWrapping="Wrap" FontSize="26" />
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

And this is the xml reading method(c#):

  while (reader.Read())
            {
                switch (reader.Name)
                {
                    case ("day_of_week"):
                        {
                            listBox1.Items.Add(new ListBoxItem()
                              {
                                  Content = reader.GetAttribute("data")
                              });
                            Day = Content.ToString();
                        } break;

…

  • 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-23T23:59:02+00:00Added an answer on May 23, 2026 at 11:59 pm

    I would recommend using MVVM approach to bind items to your listbox.

    Here is a very good tutorial of how to MVVM to bind items to a listbox:

    http://www.labo-dotnet.com/post/Creating-your-first-MVVM-silverlight-application-on-windows-phone-7.aspx

    There are lot’s of good points about MVVM:

    • Less coding
    • Your binding can be optimized for huge datasources
    • easier maintainance
    • cleaner code
    • …
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display the data retrieved from the JSP page in my List.
I want to make a program that would record audio data using PortAudio (I
I want to display data in list activity. How do I achieve this? TITLE
I want to display data loaded from a webservice but the webservice is taking
I want display data from database in Listbox...Here is my code, It is not
I want to display data in two columns as below Entry 1 Entry 2
I want to display data in a tabular form using <ul> and <li> as
I want to display data feed from an external database in a sidebar in
I want to display data from database in DataGridView...This is my code...Its not working...Can
I have multiple SharePoint lists and want to display data from them on to

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.