Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
Item
Element
Syntax:
public class VirtualizedScrollPanel<Item, Element> : ScrollViewElement<VirtualizedStackContainer<Item>>, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider where Item : class where Element : IVirtualizedElement<Item>, new()
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementScrollViewElement<VirtualizedStackContainer<Item>>VirtualizedScrollPanel<Item, Element>...
Derived Classes:
Implements:
Inherited Members
Constructors
public VirtualizedScrollPanel()
Properties
Gets or sets a value indicating whether items auto sizing.
public bool AutoSizeItems { get; set; }
true if [auto size items]; otherwise, false.
Gets or sets a value indicating whether items fit to size.
public virtual bool FitItemsToSize { get; set; }
true if [fit items to size]; otherwise, false.
Items
IList<Item>
Gets or sets the items.
public virtual IList<Item> Items { get; set; }
The items.
Gets or sets the item spacing.
public virtual int ItemSpacing { get; set; }
The item spacing.
Gets or sets the items orientation.
public virtual Orientation Orientation { get; set; }
The orientation.
Scroller
ItemScroller<Item>
Gets the associated scroller.
public ItemScroller<Item> Scroller { get; }
The scroller.
Methods
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
This method creates an object that implements IVirtualizedElementProvider. Child elements are not yet created in this method.
protected virtual IVirtualizedElementProvider<Item> CreateElementProvider()
IVirtualizedElementProvider<Item>
A new instance of an implementation of IVirtualizedElementProvider.
Creates an instance of ItemScroller. Child elements are not yet created in this method.
Creates an instance of ITraverser which traverses the child elements.
protected virtual ITraverser<Item> CreateItemTraverser(IList<Item> items)
ITraverser<Item>
Disposes of managed resources including cached images and SVG images when the element is being disposed.
protected override void DisposeManagedResources()
Overrides:
Gets the Element with the specified item.
public Element GetElement(Item item)
Element
Gets the desired size of the item.
This method provides a chance to setup the ItemScroller.
protected virtual void InitializeItemScroller(ItemScroller<Item> scroller)
The item scroller on which properties will be set.
This method provides a chance to setup the the VirtualizedStackContainer.
protected override void InitializeViewElement(VirtualizedStackContainer<Item> viewElement)
The view element on which properties will be set.
Overrides:
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
Called when auto size is changed.
protected virtual void OnAutoSizeChanged()
Performs events unsubscription from internal objects. The base implementation must always be called.
protected virtual void UnwireEvents()
Updates the items fit to size mode.
protected virtual void UpdateFitToSizeMode()
Performs events subscription to internal objects. The base implementation must always be called.
protected virtual void WireEvents()