I have a RadListBox as a messagebox which is bound to a list of messages from the system. When there is a fault in the system a fault message is recorded, I want to highlight this message with red background. Is there any way to change the background of an item based on its value.
I tried this code but it didn't have access to background property.
Thanks.
I tried this code but it didn't have access to background property.
this
.ListBox.Items.CurrentChanged += (sender, args) =>
{
for
(
int
i = 0; i <
this
.ListBox.Items.Count; ++i)
{
var item =
this
.ListBox.Items[i];
if
(item.ToString().StartsWith(
"Fault"
))
{
ListBox.Items[i]............????????? Looking for background property.
}
}
};
Thanks.