I
I
itgood2019-02-10 17:03:32
C++ / C#
itgood, 2019-02-10 17:03:32

How to add an image and a line to listbox.items?

I have a question such as in the listbox,Items add a couple of objects

AlbumList.Items.Add(image + ite.title.ToString() + "{" + ite.id.ToString() + "}");

if I add a current picture, it will be displayed if there is something else, there is no picture
5c602f2f6dbeb960789779.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2019-02-18
@RomanGL

Hello!
Are you working with WPF? For a ListBox, you can set a DataTemplate, which is a template for displaying your data. You can see examples and learn more about templates here: https://docs.microsoft.com/en-us/dotnet/framework/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question