Silverlight - Disabling Item Selection from ListBox

Posted by Villager on Stack Overflow See other posts from Stack Overflow or by Villager
Published on 2010-03-21T20:26:13Z Indexed on 2010/03/21 20:31 UTC
Read the original article Hit count: 348

Filed under:

Hello,

I have a ListBox defined in Silverlight. Each item in this ListBox has a CheckBox. Based on some rules when the ListBox is populated, some of the items in the ListBox get selected. This is used just for the sake of highlighting certain rows.

When a user clicks an item in the ListBox, I want to check or uncheck the CheckBox in the item. However, I want to leave the item as appeared as selected because of the highlighting.

Is there a way to do this? If not, is there a repeater control where I can highlight certain rows but not others when items are loaded?

Thank you,

© Stack Overflow or respective owner

Related posts about Silverlight