I just started my WP7 programming journey. I need to add 2 text lines as an item to the listbox.
What are my options?
I read about user control and some others. What is the easiest way to go about doing it?
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.
The easiest way to do this would be based on the code that comes in the default project types.
Create a new “DataBound” application and you’ll see that it shows multiple lines per item using a
DataTemplatefor theListBox.Item.Update
To retrieve the selected item, cast its datacontext to whatever the object is on the viewmodel.