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

RadPanelBarItem mouse over visual state doesn't work when item selected/focused

2 Answers 54 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Louis
Top achievements
Rank 1
Louis asked on 17 Aug 2017, 06:37 PM

Hi, I'm currently going trough the process of styling the PanelBarItems and I can't get the mouse over on the currently selected item in the PanelBar.

Repro : 

1.MouseOver item1, it works

2.Click on item1, mouse over style is still applied

3.mouse out and back in item1, mouse over style is no longer working.

 

Repro project : https://drive.google.com/file/d/0B9yNrE596_TZcUhhNDNtTkJqaFE/view?usp=sharing

2 Answers, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 22 Aug 2017, 11:42 AM
Hello Louis,

You can add the following Trigger to the ControlTemplate.Triggers of your Level 1 panel bar items to achieve the desired result:

<ControlTemplate.Triggers>
    <Trigger Property="IsMouseOver" Value="True">
        <Setter Property="Opacity" Value="1" TargetName="MouseOverVisual" />
    </Trigger>
</ControlTemplate.Triggers>

Please let me know if this works for you.

Regards,
Dilyan Traykov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
0
Louis
Top achievements
Rank 1
answered on 22 Aug 2017, 12:58 PM

Thank you, it helped me understand how to use both visual styles and triggers :)

Louis

Tags
PanelBar
Asked by
Louis
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Louis
Top achievements
Rank 1
Share this question
or