BaseItemsControl
The base class for items control bound to data.
Definition
Namespace:Telerik.Windows.Controls.GridView
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public abstract class BaseItemsControl : DataControl, INotifyPropertyChanged
Inheritance: objectDataControlBaseItemsControl
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the BaseItemsControl class.
protected BaseItemsControl()
Fields
AlternationCountProperty
DependencyProperty
Identifies the AlternationCount dependency property.
public static readonly DependencyProperty AlternationCountProperty
AlternationIndexProperty
DependencyProperty
Identifies the AlternationIndex dependency property.
public static readonly DependencyProperty AlternationIndexProperty
GroupRenderModeProperty
DependencyProperty
Identifies the GroupRenderMode dependency property.
public static readonly DependencyProperty GroupRenderModeProperty
HasItemsProperty
DependencyProperty
Identifies the HasItems dependency property.
public static readonly DependencyProperty HasItemsProperty
IsGroupingProperty
DependencyProperty
Identifies the IsGrouping dependency property.
public static readonly DependencyProperty IsGroupingProperty
ItemContainerStyleProperty
DependencyProperty
Identifies the ItemContainerStyle dependency property.
public static readonly DependencyProperty ItemContainerStyleProperty
ItemTemplateProperty
DependencyProperty
Identifies the ItemTemplate dependency property.
public static readonly DependencyProperty ItemTemplateProperty
Properties
Gets or sets the number of alternating item containers in the ItemsControl, which enables alternating containers to have a unique appearance.
public int AlternationCount { get; set; }
Gets or sets a value indicating the group render mode of the control.
public GroupRenderMode GroupRenderMode { get; set; }
Gets a value that indicates whether the BaseItemsControl contains items. This is a dependency property.
[Bindable(false)]
public bool HasItems { get; }
Gets a value that indicates whether the control is using grouping. This is a dependency property.
public bool IsGrouping { get; }
Gets the ItemContainerGenerator.
public IContainerGenerator ItemContainerGenerator { get; }
The ItemContainerGenerator.
ItemContainerStyle
Style
Gets or sets the Style that is applied to the container element generated for each item. This is a dependency property.
public Style ItemContainerStyle { get; set; }
The Style that is applied to the container element generated for each item. The default value is null.
ItemTemplate
DataTemplate
Gets or set the DataTemplate used to display each item. This is a dependency property.
public DataTemplate ItemTemplate { get; set; }
A DataTemplate that specifies the visualization of the data objects. The default value is null.
Methods
Brings the item with the given index into view. The method will not work before the item containers have been generated.
public void BringIndexIntoView(int index)
The index of the item to be brought into view.
When overridden in a derived class, undoes the effects of the PrepareContainerForGroupOverride method.
protected virtual void ClearContainerForGroupOverride(DependencyObject element, object item)
The container element.
itemobjectThe item.
When overridden in a derived class, undoes the effects of the PrepareContainerForItemOverride method.
protected virtual void ClearContainerForItemOverride(DependencyObject element, object item)
The container element.
itemobjectThe item.
Gets the AlternationIndex for the specified object.
public static int GetAlternationIndex(DependencyObject element)
The object from which to get the AlternationIndex.
Returns:The value of the AlternationIndex.
GetContainerForItemOverride(object)
DependencyObject
Creates or identifies the element that is used to display the given item.
protected virtual DependencyObject GetContainerForItemOverride(object item)
DependencyObject
The element that is used to display the given item.
Returns the BaseItemsControl that the specified element hosts items for.
public static BaseItemsControl GetItemsOwner(DependencyObject element)
The host element.
Returns:The BaseItemsControl that the specified element hosts items for, or null reference (Nothing in Visual Basic).
Returns the BaseItemsControl that owns the specified container element.
public static BaseItemsControl ItemsControlFromItemContainer(DependencyObject container)
The container element to return the BaseItemsControl for.
Returns:The BaseItemsControl that owns the specified container element.
Called when the virtualization mode changes.
protected virtual void OnGroupRenderModeChanged()
Invoked when the ItemContainerStyle property changes.
protected virtual void OnItemContainerStyleChanged(Style oldItemContainerStyle, Style newItemContainerStyle)
Old value of the ItemContainerStyle property.
newItemContainerStyleStyleNew value of the ItemContainerStyle property.
Invoked when the Items property changes.
protected virtual void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Information about the change.
Called when this.Items collection changes.
protected override void OnItemsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
The sender.
eNotifyCollectionChangedEventArgsThe NotifyCollectionChangedEventArgs instance containing the event data.
Overrides:
Invoked when the ItemTemplate property changes.
protected virtual void OnItemTemplateChanged(DataTemplate oldItemTemplate, DataTemplate newItemTemplate)
The old ItemTemplate property value.
newItemTemplateDataTemplateThe new ItemTemplate property value.
Prepares the specified element to display the specified item.
protected virtual void PrepareContainerForGroupItemOverride(DependencyObject element, object item)
Prepares the specified element to display the specified item.
protected virtual void PrepareContainerForItemOverride(DependencyObject element, object item)