public void SetItemContent(RecycledListItem item) { ObjectReferencePickerItem it = (ObjectReferencePickerItem)item; it.SetContent(filteredReferences[it.Position]); if (it.Reference == currentlySelectedObject) { it.IsSelected = true; currentlySelectedItem = it; } else { it.IsSelected = false; } it.Skin = Skin; }
void IListViewAdapter.SetItemContent(RecycledListItem item) { ObjectReferencePickerItem it = (ObjectReferencePickerItem)item; it.SetContent(filteredReferences[it.Position], referenceDisplayNameGetter(filteredReferences[it.Position])); if (it.Reference == currentlySelectedObject) { it.IsSelected = true; currentlySelectedItem = it; } else { it.IsSelected = false; } it.Skin = Skin; }