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, IFrameworkElement, IUIElement, IDependencyObject
Constructors
| Improve this Doc View SourceVirtualizingPanel()
Initializes a new instance of the Virtualizing
Declaration
protected VirtualizingPanel()
Properties
| Improve this Doc View SourceItemContainerGenerator
Gets a value that identifies the Item
Declaration
public IItemContainerGenerator ItemContainerGenerator { get; }
Property Value
Type | Description |
---|---|
IItem |
The Item |
Methods
| Improve this Doc View SourceAddInternalChild(UIElement)
Adds the specified UIElement to the Children collection of a
Virtualizing
Declaration
protected void AddInternalChild(UIElement child)
Parameters
| Improve this Doc View SourceBringIndexIntoView(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. |
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 Virtualizing
Declaration
protected void InsertInternalChild(int index, UIElement child)
Parameters
Type | Name | Description |
---|---|---|
System. |
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 Items
Declaration
protected virtual void OnItemsChanged(object sender, ItemsChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System. |
sender | The System. |
Items |
args | Provides data for the Items |
RemoveInternalChildRange(Int32, Int32)
Removes child elements from the Children collection.
Declaration
protected void RemoveInternalChildRange(int index, int range)
Parameters
Type | Name | Description |
---|---|---|
System. |
index | The beginning index position within the collection at which the first child element is removed. |
System. |
range | The total number of child elements to remove from the collection. |