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

How to prevent the text color changing when you select an item?

2 Answers 73 Views
JumpList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Arash
Top achievements
Rank 1
Arash asked on 25 Aug 2011, 11:46 PM
Dear Telerik team,

I would like to disable the text color changing that occurs when an item is selected in the RadJumpList control

I know with ListBoxes, you can just retemplate the "ItemContainerStyle" property, but I see no equivalent (or at least I can't find it) for the RadJumpList.

Thank you for your help,

Arash Emami
Seles Games

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 26 Aug 2011, 12:59 PM
Hi Arash,

Thanks for getting back to us.

There is an ItemContainerStyle property in RadJumpList, which is inherited from RadDataBoundListBox. Setting custom style you can alter the appearance of each item but still, the visual effect of changing the foreground of the selected item will be present unless you supply a new ControlTemplate with no visual states defined. This however requires far more code than just applying some custom ItemTemplate with predefined Foreground:

<telerik:RadDataBoundListBox.ItemTemplate>
    <DataTemplate>
        <TextBlock Foreground="{StaticResource PhoneForegroundBrush}" Text="{Binding}"/>
    </DataTemplate>
</telerik:RadDataBoundListBox.ItemTemplate>

I hope this information is useful. Let me know if there is something else I can help you with.

Greetings,
Georgi
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Arash
Top achievements
Rank 1
answered on 30 Aug 2011, 03:05 AM
That works - thank you Georgi
Tags
JumpList
Asked by
Arash
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Arash
Top achievements
Rank 1
Share this question
or