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 | System.Windows.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 | System.Windows.Input.MouseWheelEventArgs | The System.Windows.Input.MouseWheelEventArgs instance containing the event data. |
NotifyPreviewTouchDown(TouchEventArgs)
Notifies a TouchDown tunnelling event to IInputSource.
void NotifyPreviewTouchDown(TouchEventArgs args)
Parameter | Type | Description |
---|---|---|
args | System.Windows.Input.TouchEventArgs | The System.Windows.Input.TouchEventArgs instance containing the event data. |
NotifyPreviewTouchMove(TouchEventArgs)
Notifies a TouchMove tunnelling event to IInputSource.
void NotifyPreviewTouchMove(TouchEventArgs args)
Parameter | Type | Description |
---|---|---|
args | System.Windows.Input.TouchEventArgs | The System.Windows.Input.TouchEventArgs instance containing the event data. |
NotifyPreviewTouchUp(TouchEventArgs)
Notifies a TouchUp tunnelling event to IInputSource.
void NotifyPreviewTouchUp(TouchEventArgs args)
Parameter | Type | Description |
---|---|---|
args | System.Windows.Input.TouchEventArgs | The System.Windows.Input.TouchEventArgs instance containing the event data. |
NotifyTouchFrameReported(TouchFrameEventArgs)
Reports a TouchFrameReported event to the IInputSource.
void NotifyTouchFrameReported(TouchFrameEventArgs args)
Parameter | Type | Description |
---|---|---|
args | System.Windows.Input.TouchFrameEventArgs | The System.Windows.Input.TouchFrameEventArgs instance containing the event data. |
Events
PreviewMouseWheel
Occurs when a mouse wheel tunnelling event occurs.
event EventHandler<InputMouseWheelEventArgs> PreviewMouseWheel
Event Type
- System.EventHandler<InputMouseWheelEventArgs>
PreviewTouchDown
Occurs when a touch down tunnelling event occurs.
event EventHandler<InputTouchEventArgs> PreviewTouchDown
Event Type
- System.EventHandler<InputTouchEventArgs>
PreviewTouchMove
Occurs when a touch move tunnelling event occurs.
event EventHandler<InputTouchEventArgs> PreviewTouchMove
Event Type
- System.EventHandler<InputTouchEventArgs>
PreviewTouchUp
Occurs when a touch up tunnelling event occurs.
event EventHandler<InputTouchEventArgs> PreviewTouchUp
Event Type
- System.EventHandler<InputTouchEventArgs>
TouchFrameReported
Occurs when a touch frame is reported.
event EventHandler<InputSourceEventArgs> TouchFrameReported
Event Type
- System.EventHandler<InputSourceEventArgs>