Hosts a horizontal stack of items with optional scrollbar, pointer, wheel, and pan scrolling.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class HorizontalScrollableStackElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementHorizontalScrollableStackElement...
Derived Classes:
Implements:
Inherited Members
Constructors
public HorizontalScrollableStackElement()
Properties
Gets the layout panel containing the horizontally arranged items.
public StackLayoutPanel ItemsLayout { get; }
Gets the scrollbar that tracks the horizontal content offset.
public RadScrollBarElement ScrollBar { get; }
Gets the service that translates pointer movement into scroll operations.
public ScrollService ScrollService { get; }
Gets or sets whether the horizontal scrollbar is visible.
public bool ShowScrollBar { get; set; }
The default is false. Changing this property updates scrollbar visibility and remeasures the element.
Methods
Creates the item layout, horizontal scrollbar, and inertia-enabled scroll service.
protected override void CreateChildElements()
Overrides:
Initializes the element with its horizontal scrollbar hidden.
protected override void InitializeFields()
Overrides:
Measures the item row and reserves its measured height for the scrollbar when visible.
Captures the pointer and starts scroll-service tracking while retaining a drag-sized click area.
protected override void OnMouseDown(MouseEventArgs e)
The mouse-down event data.
Overrides:
Forwards pointer movement to the scroll service while the element has captured the pointer.
protected override void OnMouseMove(MouseEventArgs e)
The mouse-move event data.
Overrides:
Stops scroll-service tracking and forwards a click when the pointer is released within the initial drag-sized area.
protected override void OnMouseUp(MouseEventArgs e)
The mouse-up event data.
Overrides:
Changes the horizontal scrollbar value by 30 units per mouse-wheel step and clamps it to the scroll range.
protected override void OnMouseWheel(MouseEventArgs e)
The mouse-wheel event data.
Overrides:
Applies the horizontal pan offset to the scrollbar when the gesture has not already been handled.
protected override void OnPanGesture(PanGestureEventArgs args)
The pan gesture data, including its horizontal offset and handled state.
Overrides:
Scrolls the content by the specified horizontal offset, optionally coalescing rapid calls.
Scrolls the content by the specified horizontal offset without buffering the request.
public void ScrollView(int offset)
The offset to apply; positive values decrease the scrollbar value.
Sets the scroll range from the content width and the available viewport width.
protected virtual void UpdateScrollBar(SizeF availableSize)
The size available to the scrollable element.
Applies the scrollbar value as a negative horizontal offset to the item layout.
public void UpdateViewOnScroll()