locked
Listviews LargeIcon background color RRS feed

  • Question

  • When using Listviews LargeIcon-view, is it possible to set different background color for different 'cells' so the icon and text have same background color? Backcolor-property doesn't do the trick since it only sets text's background. I would like to see colored boxes with icon and text in my listview :)
    • Edited by AnoPrkl Wednesday, August 26, 2009 8:30 PM typo
    Wednesday, August 26, 2009 8:24 PM

Answers

  • I've created custom ListView where i overrided OnDrawItem and everything works fine now :)

    • Edited by AnoPrkl Sunday, August 30, 2009 11:30 AM no problemos
    • Marked as answer by Zhi-Xin Ye Thursday, September 3, 2009 11:58 AM
    Sunday, August 30, 2009 10:22 AM

All replies

  • It is possible if you template ListViewItem.
    Bigsby, Lisboa, Portugal - O que for, quando for, é que será o que é... http://bigsby.eu
    Thursday, August 27, 2009 1:01 PM
  • Thanks for your answer. Can you be more specific? :)  I dont have much experience createing custom controls based on default ones. What should i do then, create custom draw and just draw extra rectangle behind icon and text?
    Saturday, August 29, 2009 6:35 AM
  • I've created custom ListView where i overrided OnDrawItem and everything works fine now :)

    • Edited by AnoPrkl Sunday, August 30, 2009 11:30 AM no problemos
    • Marked as answer by Zhi-Xin Ye Thursday, September 3, 2009 11:58 AM
    Sunday, August 30, 2009 10:22 AM
  • Glad you were able to put things to work.

    Please mark your answer for others to know that this thread is closed.
    Bigsby, Lisboa, Portugal - O que for, quando for, é que será o que é... http://bigsby.eu
    Monday, August 31, 2009 9:57 AM