Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
785
Disabling Field Label Mouse Hover Highlighting
posted
Hello All, I have a XamDataGrid with horizontal orientation and sorting / field selection disabled. A field label becomes highlighted when I hover the mouse over it. How may I prevent this? Thanks! Dave
Parents
No Data
Reply
  • 69686
    Suggested Answer
    posted

    Hello Dave,

    This is controlled by a trigger in the LabelPresenter style. What you can do is remove that MultiTrigger- responsible for IsMouseOver property / remove the storyboards:

    <MultiTrigger>

    <MultiTrigger.Conditions>

    <!--<Condition Property="SortStatus" Value="NotSorted"/>-->

    <Condition Property="IsMouseOver" Value="True"/>

    </MultiTrigger.Conditions>

    <MultiTrigger.EnterActions>

    <BeginStoryboard Storyboard="{StaticResource sbHighlightOn}" x:Name="sbHighlightOn_BeginStoryboard"/>

    <BeginStoryboard Storyboard="{StaticResource SigmaFadeOut}" x:Name="SigmaFadeIn_BeginStoryboard"/>

    <BeginStoryboard x:Name="SigmaFadeIn_BeginStoryboard1" Storyboard="{StaticResource SigmaFadeIn}"/>

    </MultiTrigger.EnterActions>

    <MultiTrigger.ExitActions>

    <BeginStoryboard Storyboard="{StaticResource sbHighlightOff}" x:Name="sbHighlightOff_BeginStoryboard"/>

    <BeginStoryboard Storyboard="{StaticResource SigmaFadeOut}" x:Name="SigmaFadeOut_BeginStoryboard"/>

    <StopStoryboard BeginStoryboardName="SigmaFadeIn_BeginStoryboard1"/>

    </MultiTrigger.ExitActions>

    </MultiTrigger>

    You can find the default styles for the LabelPresenter and the rest of our controls in the DefaultStyles directory in the Infragistics folder.

Children