IInputSource Interface
Interface for a source of input events.
public interface IInputSource
Methods
CaptureMouse(IInputElement)
Captures the mouse.
void CaptureMouse(IInputElement element)
Parameter | Type | Description |
---|---|---|
element | IInputElement | The target element to receive mouse events. |
NotifyPreviewMouseWheel(MouseWheelEventArgs)
Notifies a MouseWheel tunnelling event to IInputSource.
void NotifyPreviewMouseWheel(MouseWheelEventArgs args)
Parameter | Type | Description |
---|---|---|
args | MouseWheelEventArgs | The MouseWheelEventArgs instance containing the event data. |
NotifyPreviewTouchDown(TouchEventArgs)
Notifies a TouchDown tunnelling event to IInputSource.
void NotifyPreviewTouchDown(TouchEventArgs args)
Parameter | Type | Description |
---|---|---|
args | TouchEventArgs | The TouchEventArgs instance containing the event data. |
NotifyPreviewTouchMove(TouchEventArgs)
Notifies a TouchMove tunnelling event to IInputSource.
void NotifyPreviewTouchMove(TouchEventArgs args)
Parameter | Type | Description |
---|---|---|
args | TouchEventArgs | The TouchEventArgs instance containing the event data. |
NotifyPreviewTouchUp(TouchEventArgs)
Notifies a TouchUp tunnelling event to IInputSource.
void NotifyPreviewTouchUp(TouchEventArgs args)
Parameter | Type | Description |
---|---|---|
args | TouchEventArgs | The TouchEventArgs instance containing the event data. |
NotifyTouchFrameReported(TouchFrameEventArgs)
Reports a TouchFrameReported event to the IInputSource.
void NotifyTouchFrameReported(TouchFrameEventArgs args)
Parameter | Type | Description |
---|---|---|
args | TouchFrameEventArgs | The TouchFrameEventArgs instance containing the event data. |
Events
PreviewMouseWheel
Occurs when a mouse wheel tunnelling event occurs.
event EventHandler<InputMouseWheelEventArgs> PreviewMouseWheel
Event Type
PreviewTouchDown
Occurs when a touch down tunnelling event occurs.
event EventHandler<InputTouchEventArgs> PreviewTouchDown
Event Type
PreviewTouchMove
Occurs when a touch move tunnelling event occurs.
event EventHandler<InputTouchEventArgs> PreviewTouchMove
Event Type
PreviewTouchUp
Occurs when a touch up tunnelling event occurs.
TouchFrameReported
Occurs when a touch frame is reported.
event EventHandler<InputSourceEventArgs> TouchFrameReported