Mouseover effect

2 posts, 0 answers
  1. Pan hal
    Pan hal avatar
    61 posts
    Member since:
    Aug 2009

    Posted 26 May 2010 Link to this post

    In our application we are using radtab control. Instead of header I have added 2 labels. Screenshot attached.
    How to get mouseover effect on these labels. 
    Here is the requirement.
    Labels foreground should be black in normal state
    on Mouse over the foreground of these label should change to white.
    Mouseover effect works correctly if we  dont use the labels. 
    But how to get the mouseover effect on these labels which are in radtabcontrol?

    Note: Please send the project as vb as I cannot open c#

    Below is the part of the code (only Scheduled tab) one tabitem along with labels 

    <!--TabControl Starts Here-->
                <tkNavigation:RadTabControl x:Name="tabControl" Grid.Row="2" BackgroundVisibility="Collapsed" Style="{StaticResource StyleRadTabControl}" >

        <!--Scheduled Tab Starts Here-->
           <msInput:Label Content="Scheduled" Margin="0" HorizontalAlignment="Center" />
           <msInput:Label x:Name="lblCount" Content="( )" Margin="0" HorizontalAlignment="Center" />

         <Grid x:Name="grdScheduled">




  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 01 Jun 2010 Link to this post

    Hi Pan hal,

    Please accept my apology for the delayed response.

    There is no out-of-the-box implementation of the scenario you described. However, you can create a custom Behavior and transfer the visual states of the RadTabItem to the Labels in its header.

    I prepared an example illustrating this approach. Please take a look at it and let me know if it works for you or if you need more info.

    Best wishes,
    Tina Stancheva
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top