GradientBrushThumb Class

Represents a thumb for use in GradientBrushSlider.

public class GradientBrushThumb : Thumb
Inheritance:
object Visual UIElement FrameworkElement Control Thumb object

Constructors

GradientBrushThumb()

Initializes a new instance of the GradientBrushThumb class.

public GradientBrushThumb()

Properties

IsSelected

Gets or sets a value indicating whether the item is selected. This is a dependency property.

public bool IsSelected { get; set; }

Property Value

bool:

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

Orientation

Gets or sets the Orientation of the panel. This is a dependency property.

public Orientation Orientation { get; set; }

Property Value

Orientation:

The Orientation of the panel. The default value is Orientation.Horizontal

Stop

Gets or sets the gradient stop represented by this thumb. This is a dependency property.

public GradientStop Stop { get; set; }

Property Value

GradientStop:

The gradient stop represented by this thumb. The default value is null.

Methods

OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)

Invoked just before the IsKeyboardFocusWithinChanged event is raised by this element.

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

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

public static readonly DependencyProperty IsSelectedProperty

OrientationProperty

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

public static readonly DependencyProperty OrientationProperty

SelectedEvent

Identifies the Selected routed event. This field is read-only.

public static readonly RoutedEvent SelectedEvent

StopProperty

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

public static readonly DependencyProperty StopProperty

UnselectedEvent

Identifies the Unselected routed event. This field is read-only.

public static readonly RoutedEvent UnselectedEvent