Class Thumb
Implements drag-able control
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls.Primitives
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class Thumb : Control
Constructors
Thumb()
Initializes a new instance of the Thumb class.
Declaration
public Thumb()
Fields
DragCompletedEvent
The drag completed event
Declaration
public static readonly RoutedEvent DragCompletedEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
DragDeltaEvent
The drag delta event
Declaration
public static readonly RoutedEvent DragDeltaEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
DragStartedEvent
The drag started event
Declaration
public static readonly RoutedEvent DragStartedEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
IsDraggingProperty
The is dragging property
Declaration
public static readonly DependencyProperty IsDraggingProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
IsDragging
Gets or sets a value indicating whether this instance is dragging.
Declaration
public bool IsDragging { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
CancelDrag()
Cancels the drag.
Declaration
public void CancelDrag()
OnDraggingChanged(DependencyPropertyChangedEventArgs)
Raises the DraggingChanged event.
Declaration
protected virtual void OnDraggingChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DependencyPropertyChangedEventArgs | e | The DependencyPropertyChangedEventArgs instance containing the event data. |
OnMouseDown(MouseButtonEventArgs)
Raises the MouseDown event.
Declaration
protected override void OnMouseDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseButtonEventArgs | e | The MouseButtonEventArgs instance containing the event data. |
Overrides
OnMouseMove(Object, MouseEventArgs)
Called when [mouse move].
Declaration
protected override void OnMouseMove(object sender, MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender. |
MouseEventArgs | e | The MouseEventArgs instance containing the event data. |
Overrides
OnMouseUp(Object, MouseButtonEventArgs)
Called when [mouse up].
Declaration
protected override void OnMouseUp(object sender, MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender. |
MouseButtonEventArgs | e | The MouseButtonEventArgs instance containing the event data. |
Overrides
OnTouchDown(TouchEventArgs)
Raises the TouchDown event.
Declaration
protected override void OnTouchDown(TouchEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
TouchEventArgs | e | The TouchEventArgs instance containing the event data. |
Overrides
OnTouchMove(TouchEventArgs)
Raises the TouchMove event.
Declaration
protected override void OnTouchMove(TouchEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
TouchEventArgs | e | The TouchEventArgs instance containing the event data. |
Overrides
OnTouchUp(TouchEventArgs)
Raises the TouchUp event.
Declaration
protected override void OnTouchUp(TouchEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
TouchEventArgs | e | The TouchEventArgs instance containing the event data. |
Overrides
Events
DragCompleted
Occurs when [drag completed].
Declaration
public event DragCompletedEventHandler DragCompleted
Event Type
Type | Description |
---|---|
DragCompletedEventHandler |
DragDelta
Occurs when [user moves mouse in drag mode].
Declaration
public event DragDeltaEventHandler DragDelta
Event Type
Type | Description |
---|---|
DragDeltaEventHandler |
DragStarted
Occurs when [drag started].
Declaration
public event DragStartedEventHandler DragStarted
Event Type
Type | Description |
---|---|
DragStartedEventHandler |