Displays a list-view group header with an expansion toggle and optional separator line.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class BaseListViewGroupVisualItem : BaseListViewVisualItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IVirtualizedElement<ListViewDataItem>
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementBaseListViewVisualItemBaseListViewGroupVisualItem...
Derived Classes:
Implements:
Inherited Members
Constructors
public BaseListViewGroupVisualItem()
Fields
Identifies the visual property's expanded state.
public static RadProperty ExpandedProperty
Properties
Gets whether this visual group header is expanded.
[Browsable(false)]
public bool IsExpanded { get; }
Methods
Creates the group toggle and configures the header's separator and non-draggable behavior.
protected override void CreateChildElements()
Overrides:
Creates the toggle used to expand or collapse the group.
protected override RadToggleButtonElement CreateToggleElement()
A group-specific toggle button.
Overrides:
Draws a separator around the group header text, accounting for whether an image is present.
protected override void DrawHorizontalLine(IGraphics graphics)
The graphics context used for drawing.
Overrides:
Draws separator segments around the header text and image.
protected virtual void DrawHorizontalLineTextWithImage(IGraphics graphics)
The graphics context used for drawing.
Draws separator segments around the header text when no image is displayed.
protected virtual void DrawHorizontalLineTextWithoutImage(IGraphics graphics)
The graphics context used for drawing.
Draws the group separator when the header has no text.
protected override void DrawHorizontalLineWithoutText(IGraphics graphics)
The graphics context used for drawing.
Overrides:
Returns the left checkbox-position setting; the base layout mirrors it for right-to-left items.
Determines whether this visual element can represent a group data item.
public override bool IsCompatible(ListViewDataItem data, object context)
The data item to test.
contextobjectAdditional context for the compatibility check.
Returns:true only when data is a group.
Overrides:
Toggles the group's expanded state when the group header is double-clicked.
protected override void OnDoubleClick(EventArgs e)
The double-click event data.
Overrides:
Invalidates measurement and scroll range when the visual expansion state changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The changed visual property.
Overrides:
Applies a toggle request to the group's expanded state and cancels it if the data item rejects the change.
protected override bool OnToggleButtonStateChanging(StateChangingEventArgs args)
The proposed toggle state.
Returns:true if the state change is canceled.
Overrides:
Paints the background, image, separator, and text for the group header.
protected override void PaintContent(IGraphics graphics)
The graphics context used for painting.
Overrides:
Draws the group header text using the shared text-painting routine.
protected override void PaintText(IGraphics graphics)
The graphics context used for painting.
Overrides:
Synchronizes the visual expansion and toggle states from the associated group.
protected override void SynchronizeProperties()
Overrides: