Displays one card by hosting a card-specific layout container, its editors, and scrollbars.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CardListViewVisualItem : IconListViewVisualItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IVirtualizedElement<ListViewDataItem>
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementBaseListViewVisualItemIconListViewVisualItemCardListViewVisualItem...
Implements:
Inherited Members
Constructors
Initializes a visual item whose container and scrollbars are created with its child elements.
public CardListViewVisualItem()
Properties
Gets the card items container.
public CardViewContainerElement CardContainer { get; }
Gets or sets the last shared-template structure version applied to this card's container.
protected virtual int ContainerVersionNumber { get; set; }
Gets or sets the card field item whose editor is currently active in this visual item.
protected virtual CardViewItem EditingItem { get; set; }
Gets the horizontal RadScrollBarElement.
public RadScrollBarElement HorizontalScrollBar { get; }
Gets or sets the last template-property synchronization version applied to this card.
protected virtual int SynchronizationPropertiesVersionNumber { get; set; }
Uses this visual-item type when resolving theme settings.
protected override Type ThemeEffectiveType { get; }
Overrides:
Gets the vertical RadScrollBarElement.
public RadScrollBarElement VerticalScrollBar { get; }
Methods
Attaches the input editor to the active card field and refreshes the card layout.
public override void AddEditor(IInputEditor editor)
The editor created for the active card field.
Overrides:
Arranges the card template, toggle element, and any visible scrollbars within the client area.
protected override void ArrangeContentCore(RectangleF clientRect)
The client area available to the card visual item.
Overrides:
Creates the per-card layout container and its horizontal and vertical scrollbars.
protected override void CreateChildElements()
Overrides:
Creates the container that holds this card's copy of the shared layout template.
protected virtual CardViewContainerElement CreateLayoutConatiner()
The per-card layout container.
Creates a scrollbar used to navigate a card whose content exceeds its item bounds.
protected virtual RadScrollBarElement CreateScrollBarElement()
A scrollbar element for this card visual.
Returns the active card field's visual editor when available, otherwise the supplied editor element.
protected override RadItem GetEditorElement(IValueEditor editor)
The value editor supplied by the list-view editing pipeline.
Returns:The active input editor element or the supplied editor when it is a visual item.
Overrides:
Accepts ordinary data items owned by a card-view element, but not grouped header items.
public override bool IsCompatible(ListViewDataItem data, object context)
The list-view data item to check.
contextobjectThe provider context; this implementation does not use it.
Returns:Overrides:
Computes the card's actual size from template content, arbitrary-size settings, checkboxes, and scrollbar needs.
protected override SizeF MeasureContentCore(SizeF availableSize, SizeF desiredSize)
The available space for the card.
desiredSizeSizeFThe initial size from the list-view item settings.
Returns:The measured size, including applicable checkbox, scrollbar, border, and padding space.
Overrides:
Measures the card and its scrollbars using the current data item's size and content.
Removes the active card field's editor, clears its editing state, and synchronizes the card again.
public override void RemoveEditor(IInputEditor editor)
The editor being removed by the list-view editor lifecycle.
Overrides:
Reconciles this card with the shared template, restores its collapsed groups, synchronizes field values, and raises formatting notifications after the card's items are ready.
protected override void SynchronizeProperties()
Overrides:
Updates the scrollbar metrics.