ClassVirtualizedStackContainer<T>
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
Syntax:
public class VirtualizedStackContainer<T> : BaseVirtualizedContainer<T>, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementLayoutPanelBaseVirtualizedContainer<T>VirtualizedStackContainer<T>
Derived Classes:
Implements:
Inherited Members
Constructors
VirtualizedStackContainer()
Declaration
public VirtualizedStackContainer()
Fields
Properties
FitElementsToSize
Gets or sets a value indicating whether the elements fit to size.
Declaration
public bool FitElementsToSize { get; set; }
Property Value
true if [fit elements to size]; otherwise, false.
ItemSpacing
Gets or sets the item spacing.
Declaration
public int ItemSpacing { get; set; }
Property Value
The item spacing.
Orientation
Gets or sets the items orientation.
Declaration
public Orientation Orientation { get; set; }
Property Value
The orientation.
ScrollOffset
Gets or sets the scroll offset.
Declaration
public SizeF ScrollOffset { get; set; }
Property Value
The scroll offset.
Methods
AddArtificialOffset(float)
Adds artificial offset on IsItemVisible when we want to use the method to hide the items which are above the top edge of the control (we hide them to improve the virtualization performance). The artificial offset will make the ArrangeOverride method start arranging items from their actual position, as if the hidden items were there.
Declaration
protected void AddArtificialOffset(float offset)
Parameters
offset
The offset to add.
ArrangeElementCore(RadElement, SizeF, RectangleF)
Arranges the element core.
Declaration
protected virtual RectangleF ArrangeElementCore(RadElement element, SizeF finalSize, RectangleF arrangeRect)
Parameters
element
The element.
finalSize
The final size.
arrangeRect
The arrange rect.
Returns
ArrangeOverride(SizeF)
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
finalSize
The size that is available for element.
Returns
The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
BeginMeasure(SizeF)
Begins the measure.
EndMeasure()
Ends the measure.
InitializeOffset()
Declaration
protected virtual void InitializeOffset()
MeasureElement(IVirtualizedElement<T>)
Declaration
protected override bool MeasureElement(IVirtualizedElement<T> element)
Parameters
element
Returns
Overrides
MeasureElementCore(RadElement, SizeF)
Measures the element core.
Declaration
protected virtual SizeF MeasureElementCore(RadElement element, SizeF availableSize)
Parameters
element
The element.
availableSize
Size of the available.
Returns