Repeater or similar for Windows Phone 7

I just started playing with Windows Phone 7 today, and without the background in Silverlight, I have some questions that I need to sort.

In the application I'm working on, I get the json set returned from the web service. I create my array with objects that contain a title, description, image, link, etc. Now, to represent this, I need to perform two tasks: 1. I need to allow scrolling of the page (preferably only a part of the data, rather than the header) 2. I need to present this data in a good way and think of something like a relay.

Has anyone got some good tips for n00b ?: P

Hooray!

+4
source share
2 answers

You want to use the ListBox control - this is the repeater function you are looking for. Here's a good tutorial explaining how to use it.

+4
source

Gergely is right, Listbox is the general right choice. However, you should be aware that there are some performance issues on the list that currently make scrolling a bit painful on the device itself. If you have several records with different sizes, you should consider the glass panel in the itemsplate palette.

Example: http://blogs.msdn.com/b/oren/archive/2010/11/08/wp7-silverlight-perf-demo-1-virtualizingstackpanel-vs-stackpanel-as-a-listbox-itemspanel.aspx

+2
source

Source: https://habr.com/ru/post/1332690/


All Articles