ScrollViewElement<T>
Represent a scrollable view element with scrollbars
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
A non-abstract content element type that derives from RadElement and has a public parameterless constructor.
Syntax:
public class ScrollViewElement<T> : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider where T : RadElement, new()
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementScrollViewElement<T>...
Derived Classes:
Implements:
Inherited Members
Constructors
public ScrollViewElement()
Properties
Gets the horizontal scroll bar.
public RadScrollBarElement HScrollBar { get; }
The horizontal scroll bar.
Gets or sets the view element.
public T ViewElement { get; set; }
The view element.
Gets the vertical scroll bar.
public RadScrollBarElement VScrollBar { get; }
The vertical scroll bar.
Methods
Arranges the horizontal scroll bar.
protected virtual RectangleF ArrangeHScrollBar(ref RectangleF viewElementRect, RectangleF clientRect)
The view element rect.
clientRectRectangleFThe client rect.
Returns:Arranges the view element.
protected virtual void ArrangeViewElement(RectangleF viewElementRect)
The view element rect.
Arranges the vertical scroll bar.
protected virtual void ArrangeVScrollBar(ref RectangleF viewElementRect, RectangleF hscrollBarRect, RectangleF clientRect)
The view element rect.
hscrollBarRectRectangleFThe hscroll bar rect.
clientRectRectangleFThe client rect.
Creates the content element and horizontal and vertical scrollbars, then adds them as children.
protected override void CreateChildElements()
Overrides:
Creates the scroll bar element.
Creates the view element.
protected virtual T CreateViewElement()
T
Enables horizontal and vertical stretching so the scroll view can fill its parent's allocated space.
protected override void InitializeFields()
Overrides:
This method provides a chance to initialize the ViewElement object.
protected virtual void InitializeViewElement(T viewElement)
The view element.
Measures the client area and delegates sizing of the view and scrollbars to MeasureView(SizeF).
protected override SizeF MeasureOverride(SizeF availableSize)
The size available to the scroll view.
Returns:The desired size reported by MeasureView(SizeF).
Overrides:
Measures non-collapsed scrollbars and the content element, adjusting content constraints when scrollbar visibility changes.
protected virtual SizeF MeasureView(SizeF availableSize)
Size of the available.
Returns:The desired size of the content and non-collapsed scrollbars, including client offsets.
The content element can be measured again during the same pass after a scrollbar changes the available extent.
Measures the content element with the available size determined by the scrollbars.
protected virtual void MeasureViewElement(SizeF availableSize)
The size available to the content element.