GradientBrushThumb Class
Represents a thumb for use in GradientBrushSlider.
public class GradientBrushThumb : Thumb, IOrientedElement
- 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:
trueif the item is selected; otherwise,false. The default value isfalse.
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.
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.
Unselected
Occurs when the thumb is unselected.
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