Mouse Hover Event in WPF

Published on Tuesday, September 27, 2011
wpf

There is no mouse hover event in WPF, The MouseHover function has been split into two parts: MouseEnter and MouseLeave. So we can use them if we need mouse Hover function.

  
private void UserControl_MouseEnter(object sender, MouseEventArgs e)     
{      
…      
}
  
_private void UserControl_MouseLeave(object sender, MouseEventArgs e)     
{      
…      
}