CVB.Net 14.0
ClickDetector Class Reference

Utility class for detecting mouse click events on controls that do not exhibit a MouseClick event. More...

Inherits IDisposable.

Public Member Functions

 ClickDetector (FrameworkElement fwElement)
 Construct a click detector. More...
 
virtual void Dispose ()
 clean up a click detector object.
 

Protected Member Functions

virtual void OnMouseClick (MouseClickEventArgs e)
 Event raiser. More...
 

Properties

EventPolicy Policy [get, set]
 Define the event treatment policy.
 
MouseEventFilter EventFilter [get, set]
 Filter applied to the mouse event.
 
double MaxDistance [get, set]
 Maximum distance the mouse may travel; if this distance is exceeded, the combination of MouseDown and MouseUp will not be considered a click.
 

Events

EventHandler< MouseClickEventArgsMouseClick
 Emitted whenever the detector detects a mouse click.
 

Detailed Description

Utility class for detecting mouse click events on controls that do not exhibit a MouseClick event.

Constructor & Destructor Documentation

◆ ClickDetector()

ClickDetector ( FrameworkElement  fwElement)

Construct a click detector.

Parameters
fwElementFramework element to which the detector is attached.

Member Function Documentation

◆ OnMouseClick()

virtual void OnMouseClick ( MouseClickEventArgs  e)
protectedvirtual

Event raiser.

Parameters
eEvent arguments.