Class VirtualizingPanel
Provides a framework for Panel elements that virtualize their visual children.
Inheritance
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public abstract class VirtualizingPanel : Panel
Constructors
| Improve this Doc View SourceVirtualizingPanel()
Initializes a new instance of the VirtualizingPanel class.
Declaration
protected VirtualizingPanel()
Properties
| Improve this Doc View SourceItemContainerGenerator
Gets a value that identifies the ItemContainerGenerator for this VirtualizingPanel.
Declaration
public IItemContainerGenerator ItemContainerGenerator { get; }
Property Value
Type | Description |
---|---|
IItemContainerGenerator | The ItemContainerGenerator for this VirtualizingPanel. |
Methods
| Improve this Doc View SourceAddInternalChild(UIElement)
Adds the specified UIElement to the Children collection of a VirtualizingPanel element.
Declaration
protected void AddInternalChild(UIElement child)
Parameters
Type | Name | Description |
---|---|---|
UIElement | child | The UIElement child to add to the collection. |
BringIndexIntoView(Int32)
When implemented in a derived class, generates the item at the specified index location and makes it visible.
Declaration
protected virtual void BringIndexIntoView(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index position of the item that is generated and made visible. |
InsertInternalChild(Int32, UIElement)
Adds the specified UIElement to the collection of a VirtualizingPanel element at the specified index position.
Declaration
protected void InsertInternalChild(int index, UIElement child)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index position within the collection at which the child element is inserted. |
UIElement | child | The UIElement child to add to the collection. |
OnClearChildren()
Called when the collection of child elements is cleared by the base Panel class.
Declaration
protected virtual void OnClearChildren()
OnItemsChanged(Object, ItemsChangedEventArgs)
Called when the Items collection that is associated with the ItemsControl for this Panel changes.
Declaration
protected virtual void OnItemsChanged(object sender, ItemsChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The System.Object that raised the event. |
ItemsChangedEventArgs | args | Provides data for the ItemsChanged event. |
RemoveInternalChildRange(Int32, Int32)
Removes child elements from the Children collection.
Declaration
protected void RemoveInternalChildRange(int index, int range)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The beginning index position within the collection at which the first child element is removed. |
System.Int32 | range | The total number of child elements to remove from the collection. |