wpf check if mouse is down 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();