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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:25:42+00:00 2026-05-15T03:25:42+00:00

I basically started today with WPF, and I’m astounded by how difficult it is

  • 0

I basically started today with WPF, and I’m astounded by how difficult it is to do binding. I have an array of TextBoxes, in an ObservableCollection, and just want to bind that in my Listbox, so that they arrange themselves vertically.

I have fiddled around with this for 3 already, can you help?

I’m working in a WPF UserControl, not a window as so many tutorials seem to rely on.

  • 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-15T03:25:42+00:00Added an answer on May 15, 2026 at 3:25 am

    In your C# code, you can do something like this:

    myListBox.ItemsSource = myTextBoxesCollection;
    

    Or in your XAML code:

    <ListBox ItemsSource="{Binding MyTextBoxesCollection}">
        <ListBox.ItemTemplate>
            <DataTemplate>
                <TextBox Text="{Binding Text}" />
            </DataTemplate>
        </ListBox.ItemTemplate>
    </ListBox>
    

    For the XAML, MyTextBoxesCollection needs to be a public property on your data context. One way to set the DataContext could be, in your constructor:

    DataContext = this;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started working with php and mysql today. Basically, what I have, is an
I'm just getting started with silverlight. Basically I have a silverlight user control that
I have just started doing TDD (and basically testing in general so bear with
i have just started using servlet. basically i am new to web projects. I
I have just gotten started with an Eclipse RCP application, it is basically just
Hi I have just started using Spring , with Hibernate4 and maven. Basically my
Basically started with Squid and iptables today (google is your friend). This stuff is
I've just started learning Objective C and getting a bit stumped with arrays. Basically,
I recently started using android actionbars and contextual action bars (CAB). I have just
Basically, I've just started some development on getting a Facebook Open Graph action for

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.