In This Article

AbstractedInputContentControl Class

A ContentControl with input events that are abstracted for testing and mocking.

public class AbstractedInputContentControl : ContentControl
Inheritance:
object Visual UIElement FrameworkElement Control ContentControl object
Derived:
InertiaScrollViewer

Constructors

AbstractedInputContentControl()

Initializes a new instance of the AbstractedInputContentControl class.

public AbstractedInputContentControl()

Methods

CaptureMouse(IInputElement)

Captures the mouse.

protected void CaptureMouse(IInputElement element)
Parameter Type Description
element IInputElement

The element.

OnInputPreviewMouseWheel(object, InputMouseWheelEventArgs)

Called when a MouseWheel tunnelling event occurs.

protected virtual void OnInputPreviewMouseWheel(object sender, InputMouseWheelEventArgs args)
Parameter Type Description
sender object

The sender.

args InputMouseWheelEventArgs

The InputMouseWheelEventArgs instance containing the event data.

OnInputPreviewTouchDown(object, InputTouchEventArgs)

Called when a TouchDown tunnelling event occurs.

protected virtual void OnInputPreviewTouchDown(object sender, InputTouchEventArgs args)
Parameter Type Description
sender object

The sender.

args InputTouchEventArgs

The InputTouchEventArgs instance containing the event data.

OnInputPreviewTouchMove(object, InputTouchEventArgs)

Called when a TouchMove tunnelling event occurs.

protected virtual void OnInputPreviewTouchMove(object sender, InputTouchEventArgs args)
Parameter Type Description
sender object

The sender.

args InputTouchEventArgs

The InputTouchEventArgs instance containing the event data.

OnInputPreviewTouchUp(object, InputTouchEventArgs)

Called when a TouchUp tunnelling event occurs.

protected virtual void OnInputPreviewTouchUp(object sender, InputTouchEventArgs args)
Parameter Type Description
sender object

The sender.

args InputTouchEventArgs

The InputTouchEventArgs instance containing the event data.

OnInputTouchFrameReported(object, InputSourceEventArgs)

Called when input touch frame reported.

protected virtual void OnInputTouchFrameReported(object sender, InputSourceEventArgs args)
Parameter Type Description
sender object

The sender.

args InputSourceEventArgs

The args.

OnPreviewMouseWheel(MouseWheelEventArgs)

Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

protected override void OnPreviewMouseWheel(MouseWheelEventArgs e)
Parameter Type Description
e MouseWheelEventArgs

The MouseWheelEventArgs that contains the event data.

OnPreviewTouchDown(TouchEventArgs)

Provides class handling for the PreviewTouchDown routed event that occurs when a touch presses this element.

protected override void OnPreviewTouchDown(TouchEventArgs e)
Parameter Type Description
e TouchEventArgs

A TouchEventArgs that contains the event data.

OnPreviewTouchMove(TouchEventArgs)

Provides class handling for the PreviewTouchMove routed event that occurs when a touch moves while inside this element.

protected override void OnPreviewTouchMove(TouchEventArgs e)
Parameter Type Description
e TouchEventArgs

A TouchEventArgs that contains the event data.

OnPreviewTouchUp(TouchEventArgs)

Provides class handling for the PreviewTouchUp routed event that occurs when a touch is released inside this element.

protected override void OnPreviewTouchUp(TouchEventArgs e)
Parameter Type Description
e TouchEventArgs

A TouchEventArgs that contains the event data.