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

3 posts, 1 answers
  1. Louis
    Louis avatar
    6 posts
    Member since:
    Jul 2017

    Posted 17 Aug Link to this post

    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. Answer
    Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    603 posts

    Posted 22 Aug Link to this post

    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 allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Louis
    Louis avatar
    6 posts
    Member since:
    Jul 2017

    Posted 22 Aug in reply to Dilyan Traykov Link to this post

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

    Louis

Back to Top