I have a GridViewColumn with a HeaderTemplate that has an Image and a TextBlock. When the user hovers over the Image I am changing its opacity, but I am still getting the default header mouse over effect. How can I suppress this effect when the user hovers over the image?
I have a GridViewColumn with a HeaderTemplate that has an Image and a TextBlock
Share
The IsMouseOver Trigger is located inside the
GridViewColumnHeadertemplate. It looks like thisUpdate
With a little code behind you can disable the IsMouseOver trigger in the Loaded event for
GridViewColumnHeader. It’s overriding the setters in the trigger by setting their values and this will work for the classic theme as well.Code behind event handler
Aero solution, the default Style with the IsMouseOver Trigger removed