I have a large array of Integer items that I want to display in ListView with formatting. Normally on Android I would extend BaseAdapter (this is an example of dynamic View/Control creation):
public View getView(int position, View convertView, ViewGroup parent) {
if(convertView!=null){
//inflate convertView if it doesn't exist
}
MyView v = (MyView)convertView;
v.setId(position);
v.setNumber(myIntegerArray[position]);
return v;
}
I would like to know how to do this in C# for my Windows Store app. I could not find any meaningful information on this topic.
I do not want to create List (or other ItemsSource object) everytime, beacuse it will take too much memory and it will be slow (I have to refresh array values).