Removing mouse over effect from expanded content area

3 posts, 0 answers
  1. Craig
    Craig avatar
    4 posts
    Member since:
    Oct 2008

    Posted 20 Nov 2008 Link to this post

    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. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 21 Nov 2008 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Craig
    Craig avatar
    4 posts
    Member since:
    Oct 2008

    Posted 24 Nov 2008 Link to this post

    Thanks!

    Got it working now.

    Craig.
Back to Top