ScrollBarThumb
Represents a scrollbar thumb in the scroll bar.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[ComVisible(false)]
public class ScrollBarThumb : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemScrollBarThumb...
Implements:
Inherited Members
Constructors
public ScrollBarThumb()
Fields
Identifies the thumb's pressed-state property.
public static RadProperty IsPressedProperty
Properties
Gets or sets the image associated with the thumb
public Image GripImage { get; set; }
Gets a value indicating whether the thumb is in pressed state.
[Browsable(false)]
public bool IsPressed { get; }
Gets the BorderPrimitive contained in the thumb.
public BorderPrimitive ThumbBorder { get; }
Gets an instance of FillPrimitive contained in the thumb.
public FillPrimitive ThumbFill { get; }
Methods
Creates the thumb's fill, border, and centered grip image, binding the fill's pressed appearance to IsPressedProperty.
protected override void CreateChildElements()
Overrides:
Uses the same orientation- and state-specific native part as GetXPVisualStyle().
public override VisualStyleElement GetVistaVisualStyle()
The visual-style element returned by GetXPVisualStyle().
Overrides:
Gets the native scrollbar thumb visual-style part for this thumb's orientation and interaction state.
public override VisualStyleElement GetXPVisualStyle()
The horizontal or vertical thumb part matching enabled, pressed, and hover state.
Overrides:
Enables the thumb to size itself to the space assigned by its scrollbar.
protected override void InitializeFields()
Overrides:
Called when the element has been successfully loaded. That includes loading of all its children as well.
protected override void OnLoaded()
Overrides:
Begins a drag operation on left mouse button press by capturing the mouse and recording the initial cursor and thumb positions used later to compute drag offsets.
Clears the pressed visual state when the mouse leaves the thumb, unless a drag operation is currently in progress (mouse captured).
Updates the thumb's position while it is being dragged (mouse captured), or while the left
button is held down over the thumb without capture (used inside the non-client area of RadForm).
Ends the drag operation started by OnMouseDown(MouseEventArgs), releasing mouse capture and applying the final thumb position.
Adds the native orientation-specific grip glyph after the base thumb skin is painted on .NET Framework.
protected override void PaintElementSkin(IGraphics graphics)
The graphics context used to paint the thumb.
Overrides:
Suppresses the custom fill and border primitives when the system skin paints the thumb.
protected override bool ShouldPaintChild(RadElement element)
The child element being considered for painting.
Returns:false for the custom fill and border during system-skin painting; otherwise, the base decision.
Overrides: