I would like to have a simple table with small images and names so that when I click on a cell/item another view is displayed? how can I do that? I’ve got some experience with iphone development and .NET but I’m new to WP 7, thanks
Share
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 use a
ListBoxto do this as follows:This will display a list or table with an image and some text in a row. Your view model needs to declare some sort of collection of
Itemobjects (List<Items>if it is static orObservableCollection<Items>if things can be added / removed). EachItemmust have at least 2 public properties,ImageSource(string containing path to the image) &ItemName(string containing description).In the
OnListSelectionChangedhandler do thisData binding is a vast topic, and you should learn more about it before attempting to write an app. Here’s an MSDN article that deals with the basics.
Specifically for Windows Phone development, I recommend you download Charles Petzold’s free book and read that.