添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
聪明的作业本  ·  [Solved]QDomDocument ...·  1 月前    · 
讲道义的茶叶  ·  Module not found: ...·  6 月前    · 
多情的葡萄酒  ·  Richard Rodney ...·  8 月前    · 
老实的橙子  ·  jquery ...·  9 月前    · 

The IsMouseOver property for a user interface element indicates whether the mouse is currently located over the element or any of its children.  For example, for a Button contained in a StackPanel , when the user moves the mouse over the Button , IsMouseOver will be true for both the Button and the StackPanel .

The IsMouseDirectlyOver , on the other hand, indicates whether the mouse is over a control and not over any of its children.

In the example below, when the mouse is over the button, the StackPanel’s IsMouseOver property is true, but its IsMouseDirectlyOver property is false.

Notice that IsMouseDirectlyOver is also false for the Button .  This is because the mouse is actually pointing to some child element within the Button element.

If we move the mouse back off the Button , but still within the StackPanel , its IsMouseDirectlyOver property becomes true.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *