Displaying ListView items - with class! by Rob Birdwell
bsp;
if (lv.SelectedItems == null || lv.SelectedItems.Count == 0)
return null;
return lv.SelectedItems[0];
}
If the PersonListView is defined with no columns, only the Person.Name member will be displayed since it was mapped to the PersonListItem.Text property in the constructor.
And that's what I call displaying ListView items - with class!
if (lv.SelectedItems == null || lv.SelectedItems.Count == 0)
return null;
return lv.SelectedItems[0];
}
If the PersonListView is defined with no columns, only the Person.Name member will be displayed since it was mapped to the PersonListItem.Text property in the constructor.
And that's what I call displaying ListView items - with class!
| 对此文章发表了评论 |

