Control.OnMouseEnter Method
May 02, 2013
Called before the MouseEnter event occurs.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- e
- Type: System.Windows.Input.MouseEventArgs
The data for the event.
The OnMouseEnter method is called before any event handler for the MouseEnter event is called. This method allows derived classes to handle the MouseEnter event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Because Windows Phone only provides a touchscreen surface for pointer interactions, the MouseEnter event will not fire unless your control is tapped onscreen. Therefore OnMouseEnter(MouseEventArgs) and OnMouseLeftButtonDown are functionally redundant.