OverflowingItemsControlPanelBase Class
Represents an abstract Panel control with layout logic for IOverflowingItemsControl items.
public abstract class OverflowingItemsControlPanelBase : VirtualizingItemsControlPanelBase
- Inheritance:
- object Visual UIElement FrameworkElement Panel VirtualizingPanel VirtualizingItemsControlPanelBase object
Constructors
OverflowingItemsControlPanelBase()
Initializes an instance of the class.
protected OverflowingItemsControlPanelBase()
Properties
IsOverflowSupported
Whether overflowing is supported by the ItemsControl owner.
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.
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
.
RemoveAllChildrenFromOtherPanels()
Removes all generated containers that may currently be located in other panels.
protected override void RemoveAllChildrenFromOtherPanels()
RemoveChildFromOtherPanel(UIElement)
Removes the specified generated container from another panel, if it currently located in one.
protected override void RemoveChildFromOtherPanel(UIElement childElement)
Parameter | Type | Description |
---|---|---|
childElement | UIElement | The element to remove. |
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