In This Article

GradientBrushThumb Class

Represents a thumb for use in GradientBrushSlider.

public class GradientBrushThumb : Thumb, IOrientedElement
Inheritance:
object Visual UIElement FrameworkElement Control Thumb object
Implements:
IOrientedElement

Constructors

GradientBrushThumb()

Initializes an instance of the class.

public GradientBrushThumb()

Properties

IsSelected

Indicates whether the item is selected.

public bool IsSelected { get; set; }

Property Value

bool:

true if the item is selected; otherwise, false. The default value is false.

Orientation

The Orientation of the panel.

public Orientation Orientation { get; set; }

Property Value

Orientation:

The default value is Horizontal.

Stop

The gradient stop represented by this thumb.

public GradientStop? Stop { get; set; }

Property Value

GradientStop:

The default value is null.

Methods

OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)

Invoked just before the IsKeyboardFocusWithinChanged event is raised by this element. Implement this method to add class handling for this event.

protected override void OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs e)
Parameter Type Description
e DependencyPropertyChangedEventArgs

A System.Windows.DependencyPropertyChangedEventArgs that contains the event data.

OnMouseLeftButtonDown(MouseButtonEventArgs)

Provides class handling for the MouseLeftButtonDown event.

protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameter Type Description
e MouseButtonEventArgs

The event data.

Events

Selected

Occurs when the thumb is selected.

public event RoutedEventHandler Selected

Event Type

RoutedEventHandler

Unselected

Occurs when the thumb is unselected.

public event RoutedEventHandler Unselected

Event Type

RoutedEventHandler

Fields

IsSelectedProperty

Defines the IsSelected property.

public static readonly DependencyProperty IsSelectedProperty

OrientationProperty

Defines the Orientation property.

public static readonly DependencyProperty OrientationProperty

SelectedEvent

Defines the Selected event.

public static readonly RoutedEvent SelectedEvent

StopProperty

Defines the Stop property.

public static readonly DependencyProperty StopProperty

UnselectedEvent

Defines the Unselected event.

public static readonly RoutedEvent UnselectedEvent

Extension Methods