Class DetailListViewCellElement
Represents an abstract base class for cell elements in detail view of RadListView. This class provides virtualization support for column-based data display and implements the core functionality for column binding, property synchronization, and cell formatting within the details view layout.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public abstract class DetailListViewCellElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IVirtualizedElement<ListViewDetailColumn>
Constructors
DetailListViewCellElement(ListViewDetailColumn)
Initializes a new instance of the DetailListViewCellElement class with the specified column.
Declaration
public DetailListViewCellElement(ListViewDetailColumn column)
Parameters
|
ListViewDetailColumn
column
The ListViewDetailColumn that this cell element will represent. |
Fields
column
The associated ListViewDetailColumn that this cell element represents.
Declaration
protected ListViewDetailColumn column
Field Value
|
ListViewDetailColumn
|
CurrentProperty
Identifies the Current dependency property which indicates whether this cell element represents the current column.
Declaration
public static RadProperty CurrentProperty
Field Value
|
RadProperty
|
IsSortedProperty
Identifies the IsSorted dependency property which indicates whether this cell element's column is currently sorted.
Declaration
public static RadProperty IsSortedProperty
Field Value
|
RadProperty
|
Properties
Data
Gets the ListViewDetailColumn data associated with this cell element.
Declaration
public virtual ListViewDetailColumn Data { get; }
Property Value
|
ListViewDetailColumn
The ListViewDetailColumn that this cell element represents. |
Implements
Methods
Attach(ListViewDetailColumn, Object)
Attaches this cell element to the specified column data and synchronizes the visual state.
Declaration
public virtual void Attach(ListViewDetailColumn data, object context)
Parameters
|
ListViewDetailColumn
data
The ListViewDetailColumn to attach to this cell element. |
|
System.Object
context
Additional context information for the attachment operation. |
Implements
CreateChildElements()
Creates and configures the child elements of this cell element, setting up drag-drop support and input handling.
Declaration
protected override void CreateChildElements()
Overrides
Detach()
Detaches this cell element from its associated column data and resets the visual state.
Declaration
public virtual void Detach()
Implements
DisposeManagedResources()
Disposes managed resources by detaching from the associated column data before performing base disposal.
Declaration
protected override void DisposeManagedResources()
Overrides
IsCompatible(ListViewDetailColumn, Object)
Determines whether this cell element is compatible with the specified column data for virtualization purposes.
Declaration
public virtual bool IsCompatible(ListViewDetailColumn data, object context)
Parameters
|
ListViewDetailColumn
data
The ListViewDetailColumn to check compatibility against. |
|
System.Object
context
Additional context information for the compatibility check. |
Returns
|
System.Boolean
True if this cell element can be reused for the specified column data; otherwise, false. |
Implements
MeasureOverride(SizeF)
Measures the desired size of this cell element, taking into account the column width unless specifically ignored.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
|
System.Drawing.SizeF
availableSize
The available size for measurement. |
Returns
|
System.Drawing.SizeF
The desired System.Drawing.SizeF of this cell element. |
Overrides
OnColumnPropertyChanged(Object, PropertyChangedEventArgs)
Handles property changes from the associated column and triggers synchronization of the cell visual state.
Declaration
protected virtual void OnColumnPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
|
System.Object
sender
The ListViewDetailColumn that raised the property change event. |
|
System.ComponentModel.PropertyChangedEventArgs
e
The System.ComponentModel.PropertyChangedEventArgs containing information about the changed property. |
Synchronize()
Synchronizes the visual properties of this cell element with the associated column data including text, current state, sorting status, and triggers cell formatting.
Declaration
public virtual void Synchronize()