Utility class for detecting mouse click events on controls that do not exhibit a MouseClick event. More...
Public Member Functions | |
| ClickDetector (FrameworkElement fwElement) | |
| Construct a click detector. | |
| virtual void | Dispose () |
| clean up a click detector object. | |
Protected Member Functions | |
| virtual void | OnMouseClick (MouseClickEventArgs e) |
| Event raiser. | |
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. |