S
S
syxme2020-03-23 07:20:45
WPF
syxme, 2020-03-23 07:20:45

Handling the element when displaying onBindViewHolder, how to do it?

Hi friends.
I have a certain goal, there is a list of audio records, a model (Artist,Title,ImageUrl) 1k+ pieces
The output was made by default, ListBox, ListBox.ItemTemplate, ItemsSource,VirtualizationMode="Standard"
Works fine, scrolls quickly,
But I need to do processing data before rendering each element.
Something like in Android RecyclerView

public void onBindViewHolder(PlaylistHolder holder, int position) {
   holder.title = audiolist[position].title;
   holder.artist= audiolist[position].artist + " ";
   holder.full= audiolist[position].title+" "+ audiolist[position].artist ;
}

Also at this moment, upload pictures from the Internet.
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question