image and text in listobx

Posted by Anu on Stack Overflow See other posts from Stack Overflow or by Anu
Published on 2010-01-27T10:05:24Z Indexed on 2010/04/08 3:03 UTC
Read the original article Hit count: 427

Filed under:
|
|

I want to inesrt one image beside one text,like this i have to include three items in listbox. in run time. If the number of items is more than 3,then the last items get removed. How can i do that in WPF,C#. And the newly added item should get added in first place. Now i did up to include text at runtime.

if (listBox1.Items.Count >= 3)
                listBox1.Items.RemoveAt(2);
            listBox1.Items.Insert(0,lData);

But i do nto know how to insert image(small rectangle with red colr,green color)

© Stack Overflow or respective owner

Related posts about wpf

Related posts about listbox