WPF Grid IsMouseOver Property

前端 未结 2 1564
孤独总比滥情好
孤独总比滥情好 2021-02-07 09:10

The WPF Grid has an \"IsMouseOver\" property that you can use in the Grid\'s Style\'s Triggers.

My problem is that the \"IsMouseOver\" property only changes if the mous

相关标签:
2条回答
  • 2021-02-07 09:45

    Your problem is that the Grid itself is not hit-testable because it has no background. Try this instead:

    <Grid Background="Transparent">
    
    0 讨论(0)
  • 2021-02-07 10:04

    set the grids background to transparent, then it should work

    for details why this is so please look here

    0 讨论(0)
提交回复
热议问题