ClassScrollViewElement<T>
Represent a scrollable view element with scrollbars
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
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
ScrollViewElement()
Declaration
public ScrollViewElement()
Properties
HScrollBar
Gets the horizontal scroll bar.
Declaration
public RadScrollBarElement HScrollBar { get; }
Property Value
The horizontal scroll bar.
VScrollBar
Gets the vertical scroll bar.
Declaration
public RadScrollBarElement VScrollBar { get; }
Property Value
The vertical scroll bar.
ViewElement
Gets or sets the view element.
Declaration
public T ViewElement { get; set; }
Property Value
T
The view element.
Methods
ArrangeHScrollBar(ref RectangleF, RectangleF)
Arranges the horizontal scroll bar.
Declaration
protected virtual RectangleF ArrangeHScrollBar(ref RectangleF viewElementRect, RectangleF clientRect)
Parameters
viewElementRect
The view element rect.
clientRect
The client rect.
Returns
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
ArrangeVScrollBar(ref RectangleF, RectangleF, RectangleF)
Arranges the vertical scroll bar.
Declaration
protected virtual void ArrangeVScrollBar(ref RectangleF viewElementRect, RectangleF hscrollBarRect, RectangleF clientRect)
Parameters
viewElementRect
The view element rect.
hscrollBarRect
The hscroll bar rect.
clientRect
The client rect.
ArrangeViewElement(RectangleF)
Arranges the view element.
Declaration
protected virtual void ArrangeViewElement(RectangleF viewElementRect)
Parameters
viewElementRect
The view element rect.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateScrollBarElement()
Creates the scroll bar element.
Declaration
protected virtual RadScrollBarElement CreateScrollBarElement()
Returns
CreateViewElement()
Creates the view element.
Declaration
protected virtual T CreateViewElement()
Returns
T
InitializeFields()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
Declaration
protected override void InitializeFields()
Overrides
InitializeViewElement(T)
This method provides a chance to initialize the ViewElement object.
Declaration
protected virtual void InitializeViewElement(T viewElement)
Parameters
viewElement
T
The view element.
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
MeasureView(SizeF)
Measures the view element.
MeasureViewElement(SizeF)
Declaration
protected virtual void MeasureViewElement(SizeF availableSize)
Parameters
availableSize