This is a migrated thread and some comments may be shown as answers.

Change the SelectedItem-Border

2 Answers 230 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 03 Oct 2013, 11:10 AM
Hi!

I have a RadListView in ViewMode "IconView". I want to change the highlight border of the selected items.
How can I do this?


Best regards
Markus

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 08 Oct 2013, 06:22 AM
Hi Markus,

Thank you for writing us.

You can change this in the VisualItemFormatting event. Please note that when you are using this event you have to always reset any changed properties:
void radListView1_VisualItemFormatting(object sender, ListViewVisualItemEventArgs e)
{
    if (e.VisualItem.Selected)
    {
        e.VisualItem.BorderColor = Color.Black;
    }
    else
    {
        e.VisualItem.ResetValue(LightVisualElement.BorderColorProperty, ValueResetFlags.Local);
    }
}

More Information about this matter can be found in the following article: Custom items

Please let me know if there is something else I can help you with. 

Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Markus
Top achievements
Rank 1
answered on 13 Oct 2013, 10:23 AM
Thank you very much :)
Tags
ListView
Asked by
Markus
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Markus
Top achievements
Rank 1
Share this question
or