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 GradientStopThumb class.

public GradientStopThumb()

Properties

IsDragging

Gets 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

Gets 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

Gets or sets 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)

Occurs when a key is pressed.

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

Identifies the IsDragging dependency property. This field is read-only.

public static readonly DependencyProperty IsDraggingProperty

IsDraggingToRemoveProperty

Identifies the IsDraggingToRemove dependency property. This field is read-only.

public static readonly DependencyProperty IsDraggingToRemoveProperty

IsSelectedProperty

Identifies the IsSelected dependency property. This field is read-only.

public static readonly DependencyProperty IsSelectedProperty