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

Removing mouse over effect from expanded content area

2 Answers 145 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 21 Nov 2008, 04:47 AM
Hi,

I was wondering if it is possible to remove the blue mouse-over effect that appears on the content area of a RadPanelBarItem. I can override the colours for this effect on the header of this control, but can't find a way to remove or disable it on the content area. I am currently using the 2008 Q2 SP1 release of RadControls for WPF.

Thanks in advance,

Craig.

2 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 21 Nov 2008, 12:25 PM
Hello Craig,

There is a Event Trigger in RadPanelBarItem that makes the item with blue background. Here is the trigger:

<EventTrigger RoutedEvent="UIElement.MouseEnter" SourceName="HeaderRow">  
    <BeginStoryboard> 
        <Storyboard> 
            <DoubleAnimation  
                            Storyboard.TargetProperty="Opacity" 
                            Storyboard.TargetName="MouseOverVisual" 
                            To="1.0" Duration="0:0:0.2" 
                         /> 
        </Storyboard> 
    </BeginStoryboard> 
</EventTrigger> 
<EventTrigger RoutedEvent="UIElement.MouseLeave" SourceName="HeaderRow">  
    <BeginStoryboard> 
        <Storyboard> 
            <DoubleAnimation  
                            Storyboard.TargetProperty="Opacity" 
                            Storyboard.TargetName="MouseOverVisual" 
                            To="0" Duration="0:0:0.2" 
                         /> 
        </Storyboard> 
    </BeginStoryboard> 
</EventTrigger> 

You can edit the control template in Blend and remove this trigger.
If you have more questions do not hesitate to contact us.


Kind regards,
Hristo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Craig
Top achievements
Rank 1
answered on 24 Nov 2008, 11:00 PM
Thanks!

Got it working now.

Craig.
Tags
PanelBar
Asked by
Craig
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Craig
Top achievements
Rank 1
Share this question
or