OverflowingItemsControlPanelBase Class
Represents an abstract Panel control with layout logic for IOverflowingItemsControl items.
public abstract class OverflowingItemsControlPanelBase : VirtualizingPanel
- Inheritance:
- object Visual UIElement FrameworkElement Panel VirtualizingPanel object
Constructors
OverflowingItemsControlPanelBase()
Initializes an instance of the class.
protected OverflowingItemsControlPanelBase()
Properties
IsOverflowSupported
Whether overflowing is supported by the ItemsControl owner.
ItemsControl
Gets the owner ItemsControl.
Methods
GetOverflowedItemCount(ItemsControl)
The get accessor for the attached OverflowedItemCountProperty.
protected static int GetOverflowedItemCount(ItemsControl obj)
Parameter | Type | Description |
---|---|---|
obj | ItemsControl | The object to examine. |
Returns
- int:
The value of the attached property.
GetRealizedContainers()
Gets the generated containers and builds them if necessary.
MoveChildToOverflowPanel(int, UIElement)
Moves a child control to the related overflow panel from this panel.
protected bool MoveChildToOverflowPanel(int insertIndex, UIElement child)
Parameter | Type | Description |
---|---|---|
insertIndex | int | The index at which to insert the child control in the related overflow panel. |
child | UIElement | The child UIElement to move. |
Returns
- bool:
true
if the move is successful; otherwise,false
.
MoveChildToThisPanel(int, UIElement)
Moves a child control to this panel from the related overflow panel.
protected bool MoveChildToThisPanel(int insertIndex, UIElement child)
Parameter | Type | Description |
---|---|---|
insertIndex | int | The index at which to insert the child control in this panel. |
child | UIElement | The child UIElement to move. |
Returns
- bool:
true
if the move is successful; otherwise,false
.
OnItemsChanged(object, ItemsChangedEventArgs)
Called when the Items collection that is associated with the ItemsControl for this Panel changes.
protected override void OnItemsChanged(object sender, ItemsChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
sender | object | The object that raised the event. |
e | ItemsChangedEventArgs | The object that raised the event. |
RealizeAllContainers()
Realizes all containers.
protected void RealizeAllContainers()
SetOverflowedItemCount(ItemsControl, int)
The set accessor for the attached OverflowedItemCountProperty.
protected static void SetOverflowedItemCount(ItemsControl obj, int value)
Parameter | Type | Description |
---|---|---|
obj | ItemsControl | The object to update. |
value | int | The value to set. |
Fields
OverflowedItemCountProperty
Identifies the OverflowedItemCount
dependency property. This field is read-only.
public static readonly DependencyProperty OverflowedItemCountProperty