Marked item in a ListBox

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
hamej
Posts: 37
Joined: Thu Oct 01, 2015 8:41 am

Marked item in a ListBox

Postby hamej » Wed Mar 16, 2016 2:40 am

When I select an item in a listbox, it is marked deep blue, which is not, what I want. I want it to look like in Silverlight as shown in attached document. How do I change this? Or is this something, you will change in at coming version?
Attachments
2016-03-15 Marking of item in a listbox.zip
(437.29 KiB) Downloaded 340 times

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: Marked item in a ListBox

Postby JS-Support @Userware » Wed Mar 16, 2016 10:34 am

Hi hamej,

Thanks for your message.

You can easily change the color of the ListBox selected item by changing the value of the "SelectedItemBackgroundBrush" property:

You can set it either in XAML or in C#.

Here is an example in C#:

Code: Select all

ListBox1.SelectedItemBackgroundBrush = new SolidColorBrush(Colors.Red);


By the way, the ability to further modify the appearance ListBox controls via ControlTemplates will be available in Q2-Q3 2016.

Thanks.
Regards,
JS-Support


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 52 guests

 

 

cron