ClassLayoutControlGroupItem
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
LayoutControlGroupItem()
Declaration
public LayoutControlGroupItem()
Fields
HeaderHeightProperty
Declaration
public static readonly RadProperty HeaderHeightProperty
Field Value
IsExpandedProperty
Declaration
public static readonly RadProperty IsExpandedProperty
Field Value
Properties
AutoSize
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.
Declaration
public override bool AutoSize { get; set; }
Property Value
Overrides
ContainerElement
Gets the container element which hosts the items within the group.
Declaration
public LayoutControlContainerElement ContainerElement { get; }
Property Value
DrawBorder
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.
Declaration
public override bool DrawBorder { get; set; }
Property Value
Overrides
HeaderElement
Gets the header element of the group.
Declaration
[Browsable(false)]
public CollapsiblePanelHeaderElement HeaderElement { get; }
Property Value
HeaderHeight
Gets or sets the height of the header.
Declaration
[VsbBrowsable(true)]
public int HeaderHeight { get; set; }
Property Value
IsExpanded
Gets or sets a value indicating whether the group is currently expanded.
Items
Gets the items within the group.
Declaration
public RadItemCollection Items { get; }
Property Value
MaxSize
Get or sets the maximum size to apply on an element when layout is calculated.
Declaration
public override Size MaxSize { get; set; }
Property Value
Overrides
MinSize
Get or sets the minimum size to apply on an element when layout is calculated.
Declaration
public override Size MinSize { get; set; }
Property Value
Overrides
ShowHeaderLine
Gets or sets a value indicating whether the line in the header element should be shown.
Declaration
[Browsable(true)]
public bool ShowHeaderLine { get; set; }
Property Value
ShowHorizontalLine
Gets or sets a value indicating whether a horizontal line should be rendered across the element.
Declaration
[Browsable(false)]
public override bool ShowHorizontalLine { get; set; }
Property Value
Overrides
TextAlignment
Gets or sets the alignment of text within the element bounds, controlling both horizontal and vertical positioning.
Declaration
[Browsable(false)]
public override ContentAlignment TextAlignment { get; set; }
Property Value
Overrides
Methods
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateContainerElement()
Declaration
protected virtual LayoutControlContainerElement CreateContainerElement()
Returns
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the standard .NET PropertyChanged event to notify subscribers of property value changes using the provided event arguments.
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
The PropertyChangedEventArgs containing the property change information.
Overrides
OnParentChanged(RadElement)
Notifies for a change in the Parent value.
Declaration
protected override void OnParentChanged(RadElement previousParent)
Parameters
previousParent
The previous parent element (if any)
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
Event arguments containing information about the property that changed.
Overrides
OnPropertyChanging(RadPropertyChangingEventArgs)
Called before a property value is changed, allowing for validation or cancellation of text changes.
Declaration
protected override void OnPropertyChanging(RadPropertyChangingEventArgs e)
Parameters
e
Overrides
UpdateOnExpandCollapse()
Called when the group is expanded or collapsed to do the necessary updates.
Declaration
protected virtual void UpdateOnExpandCollapse()
Events
Collapsed
Occurs when the group item is collapsed.
Collapsing
Occurs when the group item is about to be collapsed. Cancelable.
Declaration
public event CancelEventHandler Collapsing
Event Value
Expanded
Occurs when the group item is expanded.
Expanding
Occurs when the group item is about to be expanded. Cancelable.
Declaration
public event CancelEventHandler Expanding
Event Value