ClassVirtualizedScrollPanel<Item, Element>
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
VirtualizedScrollPanel()
Declaration
public VirtualizedScrollPanel()
Properties
AutoSizeItems
Gets or sets a value indicating whether items auto sizing.
Declaration
public bool AutoSizeItems { get; set; }
Property Value
true if [auto size items]; otherwise, false.
FitItemsToSize
Gets or sets a value indicating whether items fit to size.
Declaration
public virtual bool FitItemsToSize { get; set; }
Property Value
true if [fit items to size]; otherwise, false.
ItemSpacing
Gets or sets the item spacing.
Declaration
public virtual int ItemSpacing { get; set; }
Property Value
The item spacing.
Items
Gets or sets the items.
Declaration
public virtual IList<Item> Items { get; set; }
Property Value
IList<Item>
The items.
Orientation
Gets or sets the items orientation.
Declaration
public virtual Orientation Orientation { get; set; }
Property Value
The orientation.
Scroller
Gets the associated scroller.
Declaration
public ItemScroller<Item> Scroller { get; }
Property Value
ItemScroller<Item>
The scroller.
Methods
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateElementProvider()
This method creates an object that implements IVirtualizedElementProvider. Child elements are not yet created in this method.
Declaration
protected virtual IVirtualizedElementProvider<Item> CreateElementProvider()
Returns
IVirtualizedElementProvider<Item>
A new instance of an implementation of IVirtualizedElementProvider.
CreateItemScroller()
Creates an instance of ItemScroller. Child elements are not yet created in this method.
Declaration
protected virtual ItemScroller<Item> CreateItemScroller()
Returns
ItemScroller<Item>
CreateItemTraverser(IList<Item>)
Creates an instance of ITraverser which traverses the child elements.
Declaration
protected virtual ITraverser<Item> CreateItemTraverser(IList<Item> items)
Parameters
items
IList<Item>
Returns
ITraverser<Item>
DisposeManagedResources()
Disposes of managed resources including cached images and SVG images when the element is being disposed.
Declaration
protected override void DisposeManagedResources()
Overrides
GetElement(Item)
Gets the Element with the specified item.
Declaration
public Element GetElement(Item item)
Parameters
item
Item
Returns
Element
GetItemDesiredSize(Item)
Gets the desired size of the item.
Declaration
protected virtual SizeF GetItemDesiredSize(Item item)
Parameters
item
Item
The item.
Returns
InitializeItemScroller(ItemScroller<Item>)
This method provides a chance to setup the ItemScroller.
Declaration
protected virtual void InitializeItemScroller(ItemScroller<Item> scroller)
Parameters
scroller
ItemScroller<Item>
The item scroller on which properties will be set.
InitializeViewElement(VirtualizedStackContainer<Item>)
This method provides a chance to setup the the VirtualizedStackContainer.
Declaration
protected override void InitializeViewElement(VirtualizedStackContainer<Item> viewElement)
Parameters
viewElement
VirtualizedStackContainer<Item>
The view element on which properties will be set.
Overrides
MeasureItem(Item, SizeF)
Measures the item.
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
OnAutoSizeChanged()
Called when auto size is changed.
Declaration
protected virtual void OnAutoSizeChanged()
UnwireEvents()
Performs events unsubscription from internal objects. The base implementation must always be called.
Declaration
protected virtual void UnwireEvents()
UpdateFitToSizeMode()
Updates the items fit to size mode.
Declaration
protected virtual void UpdateFitToSizeMode()
UpdateOnMeasure(SizeF)
Updates on measure.
WireEvents()
Performs events subscription to internal objects. The base implementation must always be called.
Declaration
protected virtual void WireEvents()