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?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
The IsMouseOver Trigger is located inside the
GridViewColumnHeader
template. 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