Class VirtualizedScrollPanel<Item, Element>
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class VirtualizedScrollPanel<Item, Element> : ScrollViewElement<VirtualizedStackContainer<Item>>, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider where Item : class where Element : IVirtualizedElement<Item>, new()
Type Parameters
Item
|
Element
|
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
System.Boolean
|
FitItemsToSize
Gets or sets a value indicating whether items fit to size.
Declaration
public virtual bool FitItemsToSize { get; set; }
Property Value
System.Boolean
|
Items
Gets or sets the items.
Declaration
public virtual IList<Item> Items { get; set; }
Property Value
System.Collections.Generic.IList<Item>
The items. |
ItemSpacing
Gets or sets the item spacing.
Declaration
public virtual int ItemSpacing { get; set; }
Property Value
System.Int32
The item spacing. |
Orientation
Gets or sets the items orientation.
Declaration
public virtual Orientation Orientation { get; set; }
Property Value
System.Windows.Forms.Orientation
The orientation. |
Scroller
Gets the associated scroller.
Declaration
public ItemScroller<Item> Scroller { get; }
Property Value
ItemScroller<Item>
The scroller. |
Methods
CreateChildElements()
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
System.Collections.Generic.IList<Item>
items
|
Returns
ITraverser<Item>
|
DisposeManagedResources()
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
System.Drawing.SizeF
|
HScrollBar_ValueChanged(Object, EventArgs)
Declaration
protected virtual void HScrollBar_ValueChanged(object sender, EventArgs e)
Parameters
System.Object
sender
|
System.EventArgs
e
|
InitializeItemScroller(ItemScroller<Item>)
This method provides a chance to setup the ItemScroller.
Declaration
protected virtual void InitializeItemScroller(ItemScroller<Item> scroller)
Parameters
ItemScroller<Item>
scroller
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
VirtualizedStackContainer<Item>
viewElement
The view element on which properties will be set. |
Overrides
MeasureItem(Item, SizeF)
Measures the item.
Declaration
public virtual SizeF MeasureItem(Item item, SizeF availableSize)
Parameters
Item
item
The item. |
System.Drawing.SizeF
availableSize
Size of the available. |
Returns
System.Drawing.SizeF
|
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnAutoSizeChanged()
Called when auto size is changed.
Declaration
protected virtual void OnAutoSizeChanged()
scroller_ScrollerUpdated(Object, EventArgs)
Declaration
protected virtual void scroller_ScrollerUpdated(object sender, EventArgs e)
Parameters
System.Object
sender
|
System.EventArgs
e
|
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.
Declaration
protected virtual bool UpdateOnMeasure(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
Size of the available. |
Returns
System.Boolean
|
WireEvents()
Performs events subscription to internal objects. The base implementation must always be called.
Declaration
protected virtual void WireEvents()