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
public VirtualizedStackContainer()
Fields
Properties
public float ArtificialOffset { get; }
public SizeF CurrentDesiredSize { get; }
Gets or sets a value indicating whether the elements fit to size.
public bool FitElementsToSize { get; set; }
true if [fit elements to size]; otherwise, false.
Gets or sets the item spacing.
public int ItemSpacing { get; set; }
The item spacing.
Gets or sets the items orientation.
public Orientation Orientation { get; set; }
The orientation.
public SizeF OriginalAvailableSize { get; }
public SizeF RemainingAvailableSize { get; }
Gets or sets the scroll offset.
public SizeF ScrollOffset { get; set; }
The scroll offset.
Methods
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.
Arranges the element core.
protected virtual RectangleF ArrangeElementCore(RadElement element, SizeF finalSize, RectangleF arrangeRect)
The element.
finalSizeSizeFThe final size.
arrangeRectRectangleFThe arrange rect.
Returns:Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
protected override SizeF ArrangeOverride(SizeF 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:
In this method call to the Arrange method of each child must be made.
Ends the measure.
protected virtual void InitializeOffset()
protected override bool MeasureElement(IVirtualizedElement<T> element)
Overrides:
Measures the element core.
protected virtual SizeF MeasureElementCore(RadElement element, SizeF availableSize)
The element.
availableSizeSizeFSize of the available.
Returns: