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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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.”