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

Turn Off Mouse Over Effect In Item Panel

1 Answer 243 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
heavywoody
Top achievements
Rank 1
heavywoody asked on 20 Mar 2010, 03:27 AM
I have been fighting with this for the last two hours, reading other posts on it, editing a copy of the itemtemplate.  Basically, I like the RadPanelBar, but I really don't like the mouseover effect on the background.  I don't know if this is the Panel its self or the Item.  But I have to get rid of this.  I have a hard blue background with a listbox.  When I hover over to select a listbox item, the background turns yellowish which looks terrible.  Again, I read the other post about specifically taking over the triggers for the RadPanelBarItem, but it has no effect.

Here is my code.  Try it yourself and you will see the very bad yellow trigger effect.  I don't want it to change. I want it to stay the dark blue the entire time.

 

 

 

<Grid>

 

 

 

 

<Grid.Background>

 

 

 

 

<RadialGradientBrush>

 

 

 

 

<GradientStop Color="#FF3A7198" Offset="0.982"/>

 

 

 

 

<GradientStop Color="#FF365D7A" Offset="0.029"/>

 

 

 

 

</RadialGradientBrush>

 

 

 

 

</Grid.Background>

 

 

 

 

<telerikNavigation:RadPanelBar VerticalAlignment="Stretch" x:Name="radPanelBar" Background="Transparent">

 

 

 

 

<telerikNavigation:RadPanelBarItem>

 

 

 

 

<telerikNavigation:RadPanelBarItem.Header>

 

 

 

 

<TextBlock Text="Workflow Templates" Margin="5 4 5 5" />

 

 

 

 

</telerikNavigation:RadPanelBarItem.Header>

 

 

 

 

<ListBox x:Name="lstWorkFlowTemplates"

 

 

 

SelectionChanged="lstTemplates_SelectionChanged"

 

 

 

Background="Transparent"

 

 

 

BorderThickness="0"

 

 

 

IsSynchronizedWithCurrentItem="True"/>

 

 

 

 

</telerikNavigation:RadPanelBarItem>

 

 

 

 

<telerikNavigation:RadPanelBarItem>

 

 

 

 

<telerikNavigation:RadPanelBarItem.Header>

 

 

 

 

<TextBlock Text="Column Templates" Margin="5 4 5 5" />

 

 

 

 

</telerikNavigation:RadPanelBarItem.Header>

 

 

 

 

<ListBox x:Name="lstTemplates"

 

 

 

SelectionChanged="lstTemplates_SelectionChanged"

 

 

 

Background="Transparent"

 

 

 

BorderThickness="0"

 

 

 

IsSynchronizedWithCurrentItem="True"/>

 

 

 

 

</telerikNavigation:RadPanelBarItem>

 

 

 

 

</telerikNavigation:RadPanelBar>

 

 

 

 

</Grid>

 

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 24 Mar 2010, 10:27 AM
Hi Christian Loepp,

Please find attached an example with a custom style of RadPanelBar control. If you have further questions please do not hesitate to ask us.
I hope this will help you.


Greetings,
Dimitrina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
PanelBar
Asked by
heavywoody
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or