Represents an item which hosts other items that inherit from LayoutControlItemBase. Has a header element and a LayoutControlContainerElement which holds the items. Can be expanded and collapsed.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class LayoutControlGroupItem : LayoutControlItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementLayoutControlItemBaseLayoutControlGroupItem...
Derived Classes:
Implements:
Inherited Members
Constructors
public LayoutControlGroupItem()
Fields
public static readonly RadProperty HeaderHeightProperty
public static readonly RadProperty IsExpandedProperty
Properties
Gets or sets a value indicating whether the element size will be calculated automatically by the layout system. Value of false indicates that the element's size will not be changed when calculating the layout.
public override bool AutoSize { get; set; }
Overrides:
Gets the container element which hosts the items within the group.
public LayoutControlContainerElement ContainerElement { get; }
Gets or sets a value indicating whether the element should render its border during the paint operation. This property controls the visibility of all border styles including single borders, four borders, and outer-inner borders.
public override bool DrawBorder { get; set; }
Overrides:
Gets the header element of the group.
[Browsable(false)]
public CollapsiblePanelHeaderElement HeaderElement { get; }
Gets or sets the height of the header.
[VsbBrowsable(true)]
public int HeaderHeight { get; set; }
Gets or sets a value indicating whether the group is currently expanded.
public bool IsExpanded { get; set; }
Gets the items within the group.
public RadItemCollection Items { get; }
Get or sets the maximum size to apply on an element when layout is calculated.
public override Size MaxSize { get; set; }
Overrides:
Get or sets the minimum size to apply on an element when layout is calculated.
public override Size MinSize { get; set; }
Overrides:
Gets or sets a value indicating whether the line in the header element should be shown.
[Browsable(true)]
public bool ShowHeaderLine { get; set; }
Gets or sets a value indicating whether a horizontal line should be rendered across the element.
[Browsable(false)]
public override bool ShowHorizontalLine { get; set; }
Overrides:
Gets or sets the alignment of text within the element bounds, controlling both horizontal and vertical positioning.
[Browsable(false)]
public override ContentAlignment TextAlignment { get; set; }
Overrides:
Methods
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
protected virtual LayoutControlContainerElement CreateContainerElement()
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
Raises the standard .NET PropertyChanged event to notify subscribers of property value changes using the provided event arguments.
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
The PropertyChangedEventArgs containing the property change information.
Overrides:
Notifies for a change in the Parent value.
protected override void OnParentChanged(RadElement previousParent)
The previous parent element (if any)
Overrides:
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Called before a property value is changed, allowing for validation or cancellation of text changes.
protected override void OnPropertyChanging(RadPropertyChangingEventArgs e)
Overrides:
Called when the group is expanded or collapsed to do the necessary updates.
protected virtual void UpdateOnExpandCollapse()
Events
Occurs when the group item is collapsed.
public event EventHandler Collapsed
Occurs when the group item is about to be collapsed. Cancelable.
public event CancelEventHandler Collapsing
Occurs when the group item is expanded.
public event EventHandler Expanded
Occurs when the group item is about to be expanded. Cancelable.
public event CancelEventHandler Expanding