In This Article

GradientStopThumb Class

Represents a thumb for dragging a gradient stop in a GradientStopSlider.

public class GradientStopThumb : Control
Inheritance:
object Visual UIElement FrameworkElement Control object

Constructors

GradientStopThumb()

Initializes an instance of the class.

public GradientStopThumb()

Properties

IsDragging

Indicates whether the thumb is being dragged by a pointer.

public bool IsDragging { get; }

Property Value

bool:

true if the thumb is being dragged by a pointer; otherwise, false.

IsDraggingToRemove

Indicates whether the thumb is being dragged by a pointer into a location where it will be removed.

public bool IsDraggingToRemove { get; }

Property Value

bool:

true if the thumb is being dragged by a pointer into a location where it will be removed; otherwise, false.

IsSelected

Indicates whether the thumb is currently selected.

public bool IsSelected { get; set; }

Property Value

bool:

true if the thumb is currently selected; otherwise, false.

Methods

OnKeyDown(KeyEventArgs)

Invoked when an unhandled System.Windows.Input.Keyboard.KeyDown 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 OnKeyDown(KeyEventArgs e)
Parameter Type Description
e KeyEventArgs

The KeyEventArgs that contains the event data.

RemoveIfAllowed()

Removes the gradient stop, if the slider allows it.

public void RemoveIfAllowed()

Fields

IsDraggingProperty

Defines the IsDragging property.

public static readonly DependencyProperty IsDraggingProperty

IsDraggingToRemoveProperty

Defines the IsDraggingToRemove property.

public static readonly DependencyProperty IsDraggingToRemoveProperty

IsSelectedProperty

Defines the IsSelected property.

public static readonly DependencyProperty IsSelectedProperty

Extension Methods