check if mouse is over element wpf code example
Example 1: check if mouse is over element wpf
**in xaml**
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Foreground" Value="Blue" />
<Setter Property="Cursor" Value="Hand"/>
</Trigger>
Example 2: check if mouse is over element wpf
if(this.B.IsMouseOver)
DoSomethingNice();