CardListViewElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CardListViewElement : IconListViewElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementScrollViewElement<VirtualizedStackContainer<ListViewDataItem>>VirtualizedScrollPanel<ListViewDataItem, BaseListViewVisualItem>BaseListViewElementIconListViewElementCardListViewElement...
Implements:
Inherited Members
Constructors
Properties
Gets or sets a value indicating whether the items can have different height.
public override bool AllowArbitraryItemHeight { get; set; }
Overrides:
Gets or sets a value indicating whether the items can have different width.
public override bool AllowArbitraryItemWidth { get; set; }
Overrides:
protected IDictionary<string, string> BoundItems { get; }
Gets the layout control used as a template for all displayed cards.
public RadLayoutControl CardTemplate { get; }
Gets the card view element.
public RadCardViewElement CardViewElement { get; }
The card view element.
CollapsedGroupsDictionary
IDictionary<ListViewDataItem, List<string>>
protected IDictionary<ListViewDataItem, List<string>> CollapsedGroupsDictionary { get; }
Gets or sets the context menu.
public RadDropDownMenu DropDownMenu { get; set; }
Gets or sets the default item size.
public override Size ItemSize { get; set; }
Overrides:
ItemSynchronizationProperties
IList<RadProperty>
Gets the item synchronization properties.
public static IList<RadProperty> ItemSynchronizationProperties { get; }
The item synchronization properties.
Gets the serialization info for RadLayoutControl used by Save/Load layout methods to persist the layout to/from XML. By default or when set to null the ComponentXmlSerializationInfo provided by GetDefaultXmlSerializationInfo() will be used.
[Browsable(false)]
public ComponentXmlSerializationInfo XmlSerializationInfo { get; set; }
Methods
Closes the customize dialog.
public void CloseCustomizeDialog()
Synchronizes given CardViewContainerElement to the container of CardTemplate.
protected virtual void CompareContainers(CardViewContainerElement cardViewContainer, CardListViewVisualItem visualItem)
The given container.
visualItemCardListViewVisualItemThe visual item that owns the container.
protected virtual void CompareItems(RadItemCollection layoutContainerItems, RadItemCollection cardViewContainerItems, CardListViewVisualItem visualItem)
protected virtual CardViewItem CreateCardViewItem(CardViewItem originalItem)
Creates and configures the child elements for the icon view, setting the default item size for icon display.
protected override void CreateChildElements()
Overrides:
Creates the element provider responsible for managing the creation and recycling of visual list view items.
protected override IVirtualizedElementProvider<ListViewDataItem> CreateElementProvider()
IVirtualizedElementProvider<ListViewDataItem>
A new ListViewVirtualizedElementProvider for visual item management.
Overrides:
protected virtual LayoutControlGroupItem CreateGroupItem(LayoutControlGroupItem originalItem, CardListViewVisualItem visualItem)
protected virtual LayoutControlLabelItem CreateLabelItem(LayoutControlLabelItem originalItem)
protected virtual LayoutControlItemBase CreateNewItem(LayoutControlItemBase originalItem, CardListViewVisualItem visualItem)
protected virtual LayoutControlSeparatorItem CreateSeparatorItem(LayoutControlSeparatorItem originalItem)
protected virtual LayoutControlSplitterItem CreateSplitterItem(LayoutControlSplitterItem originalItem)
protected virtual LayoutControlTabbedGroup CreateTabbedGroup(LayoutControlTabbedGroup originalItem, CardListViewVisualItem visualItem)
Disposes managed resources including timers used for editing, group selection, and lasso operations. Ensures proper cleanup of event handlers and timer resources.
protected override void DisposeManagedResources()
Overrides:
Gets all child items.
public virtual List<LayoutControlItemBase> GetAllChildItems(RadItemCollection items)
The items.
Returns:List<LayoutControlItemBase>
Gets the default serialization info for RadLayoutControl used by Save/Load layout methods to persist the layout to/from XML.
protected virtual ComponentXmlSerializationInfo GetDefaultXmlSerializationInfo()
The default serialization info.
Initializes the items of the default context menu.
protected virtual void InitializeDropDownMenu()
Loads CardTemplate's layout state from XML file, using the serialization information provided by the XmlSerializationInfo property.
public virtual void LoadCardTemplateLayout(Stream stream)
The stream to read from.
Loads CardTemplate's layout state from XML file, using the serialization information provided by the XmlSerializationInfo property.
public virtual void LoadCardTemplateLayout(string fileName)
The file to read from.
Loads CardTemplate's layout state from XML file, using the serialization information provided by the XmlSerializationInfo property.
public virtual void LoadCardTemplateLayout(XmlReader xmlReader)
The XmlReader to read the XML from.
Called when the element has been successfully loaded. That includes loading of all its children as well.
protected override void OnLoaded()
Overrides:
Called when a mouse button is pressed down over the item.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event arguments.
Overrides:
Called when a mouse button is released over the item.
protected override void OnMouseUp(MouseEventArgs e)
The mouse event arguments.
Overrides:
protected virtual void ResetCardTemplate()
Stores CardTemplate's layout state in XML format, using the serialization information provided by the XmlSerializationInfo property.
public virtual void SaveCardTemplateLayout(Stream stream)
The stream to write to.
Stores CardTemplate's layout state in XML format, using the serialization information provided by the XmlSerializationInfo property.
public virtual void SaveCardTemplateLayout(string fileName)
The file to write to.
Stores CardTemplate's layout state in XML format, using the serialization information provided by the XmlSerializationInfo property.
public virtual void SaveCardTemplateLayout(XmlWriter xmlWriter)
XmlWriter to use by the built-in serializer
Shows the customize dialog.
public void ShowCustomizeDialog()
protected virtual void SynchronizeItemProperties(LayoutControlItemBase originalItem, LayoutControlItemBase item)
Updates item bounds and synchronizes properties.
protected virtual void UpdateItemProperties(LayoutControlItemBase originalItem, LayoutControlItemBase item, CardListViewVisualItem visualItem)
Updates the items layout.
public virtual void UpdateItemsLayout()