Represents a thumb for use in Gradient
Constructors
GradientBrushThumb()
Initializes a new instance of the Gradient
Properties
IsSelected
Gets or sets a value indicating whether the item is selected. This is a dependency property.
Property Value
- bool:
true
if the item is selected; otherwise,false
. The default value isfalse
.
Orientation
Gets or sets the Orientation of the panel. This is a dependency property.
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.
Property Value
- Gradient
Stop : The gradient stop represented by this thumb. The default value is
null
.
Methods
OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
Invoked just before the Is
Parameter | Type | Description |
---|---|---|
e | DependencyPropertyChangedEventArgs | A System.Windows.DependencyPropertyChangedEventArgs that contains the event data. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Provides class handling for the MouseLeftButtonDown
event.
Parameter | Type | Description |
---|---|---|
e | Mouse |
The event data. |
Events
Selected
Occurs when the thumb is selected.
Event Type
Unselected
Occurs when the thumb is unselected.
Event Type
Fields
IsSelectedProperty
Identifies the Is
OrientationProperty
Identifies the Orientation dependency property. This field is read-only.
SelectedEvent
Identifies the Selected routed event. This field is read-only.
StopProperty
Identifies the Stop dependency property. This field is read-only.
UnselectedEvent
Identifies the Unselected routed event. This field is read-only.