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< MouseClickEventArgs > | MouseClick |
Emitted whenever the detector detects a mouse click. | |
Utility class for detecting mouse click events on controls that do not exhibit a MouseClick event.
ClickDetector | ( | FrameworkElement | fwElement | ) |
Construct a click detector.
fwElement | Framework element to which the detector is attached. |
|
protectedvirtual |
Event raiser.
e | Event arguments. |