ControlTemplate with "Control.IsMouseOver" Value="True" and "Control.IsMouseOver" Value="False">

Posted by Vinjamuri on Stack Overflow See other posts from Stack Overflow or by Vinjamuri
Published on 2010-05-22T04:59:13Z Indexed on 2010/05/22 5:00 UTC
Read the original article Hit count: 285

Filed under:
|

In my WPF control, I have below code. If I don't have a trigger with false, I can see the my storyboard, but if I have both ture and false triggers, I don't see any thing.

How to fix this? Appreciate your help!

<Trigger Property="Control.IsMouseOver" Value="True">
 <StoryBoard>          
      Image with Opacity 1
 </StoryBoard>
</Trigger>        
<Trigger Property="Control.IsMouseOver" Value="False">
 <StoryBoard> 
      Image with Opacity 0
 </StoryBoard>
</Trigger>        

© Stack Overflow or respective owner

Related posts about wpf

Related posts about wpf-controls