Measures ribbon content and collapses or expands its CollapsibleElement children to fit the available width.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ExpandableStackLayout : StackLayoutPanel, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementLayoutPanelStackLayoutPanelExpandableStackLayout...
Implements:
Inherited Members
Constructors
public ExpandableStackLayout()
Fields
Controls whether this panel changes collapsible children to fit its measured width.
public static RadProperty CollapsingEnabledProperty
Properties
Gets or sets the cached list of collapsible children used during layout.
protected List<CollapsibleElement> CollapsibleChildren1 { get; set; }
Gets or sets a boolean value determining whether the layout panel will collapse its content according to its size.
public bool CollapsingEnabled { get; set; }
Methods
Selects the next child that can be collapsed, prioritizing later entries in the ordered child list.
protected CollapsibleElement GetElementToCollapse(out int possibleCollapseStep)
Receives the state to which the selected child can be collapsed, or -1 when none is found.
Returns:The child to collapse, or null if no child can transition to another collapse state.
Selects the first visible child whose CanExpandToStep(int) accepts a candidate state.
protected CollapsibleElement GetElementToExpand(float sumAllElementsWidth, float availableWidth, out int possibleExpandStep)
The total width of the measured children; this implementation does not use this value to select a child.
availableWidthfloatThe available layout width; this implementation does not use this value to select a child.
possibleExpandStepintReceives the state to which the selected child can be expanded, or -1 when none is found.
Returns:The child accepted for one of the candidate states, or null if none accepts.
Invalidates measurement and arrangement for an element and all of its descendants.
public static void InvalidateAll(RadElement baseElement)
The root of the element subtree to invalidate.
Measures the children and changes their collapse states as needed to fit the available width.
Clears the cached collapsible children when the panel's child collection changes.
protected override void OnChildrenChanged(RadElement child, ItemsChangeOperation changeOperation)
The child that was added or removed.
changeOperationItemsChangeOperationThe operation applied to the child collection.
Overrides:
Enables or disables size-based collapsing on descendant ExpandableStackLayout panels.
public static void SetCollapsingEnabled(RadElement rootElement, bool enabled)
The element whose descendant layouts are updated.
enabledbool