AbstractedInputContentControl Class
A ContentControl with input events that are abstracted for testing and mocking.
public class AbstractedInputContentControl : ContentControl, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild
- Inheritance:
- Object DispatcherObject DependencyObject 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 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. |
Inherited Members
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()