Slider.OnMouseLeftButtonDown Method

May 11, 2014

Provides class handling for the MouseLeftButtonDown event.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

protected override void OnMouseLeftButtonDown(
	MouseButtonEventArgs e
)

This implementation marks the MouseLeftButtonDown event as handled by setting the MouseButtonEventArgs.Handled property of the event data to true. In addition, it makes sure that the Slider control has the focus and is capturing cursor movement..

The OnMouseLeftButtonDown method allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnMouseLeftButtonDown in a derived class, make sure to call the base class’s OnMouseLeftButtonDown method so that registered delegates receive the event.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft