views:

24

answers:

1

I'm going to be making a user control for person information, I will then populate a panel of some sort with the ammount of people found (one user control for each person).

Can WPF handle this?

+2  A: 

You can do this, but it is not necessarily the best option.

Instead of putting in controls per person, you can use an ItemTemplate that describes how to render a "Person". You can then just bind a (standard) ItemsControl, such as a ListBox or ListView to your collection of people directly, and WPF will handle wiring it up for you.

For details, I'd recommend reading up on Data Binding on MSDN, in particular, "Binding to Collections."

Reed Copsey