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

Mouseover effect

1 Answer 75 Views
This is a migrated thread and some comments may be shown as answers.
Pan hal
Top achievements
Rank 1
Pan hal asked on 26 May 2010, 09:47 PM

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">




1 Answer, 1 is accepted

Sort by
Tina Stancheva
Telerik team
answered on 01 Jun 2010, 04:31 PM
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.
Asked by
Pan hal
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question