Can I make WPF set IsMouseOver for both the covering and covered element?

后端 未结 3 1535
刺人心
刺人心 2021-01-21 01:20

The simplified example this; picture a Venn diagram made from two elements, A and B, that overlap. If I mouse over (A AND (NOT B)) all of A lights up. If I mouse over (B AND (NO

3条回答
  •  既然无缘
    2021-01-21 02:02

    Use IsMouseDirectlyOver property. It seems to be thing you need.

    http://msdn.microsoft.com/en-us/library/system.windows.uielement.ismousedirectlyoverproperty.aspx

提交回复
热议问题