ClassBaseItemsControl
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
BaseItemsControl()
Initializes a new instance of the BaseItemsControl class.
Declaration
protected BaseItemsControl()
Fields
AlternationCountProperty
Identifies the AlternationCount dependency property.
Declaration
public static readonly DependencyProperty AlternationCountProperty
Field Value
DependencyProperty
AlternationIndexProperty
Identifies the AlternationIndex dependency property.
Declaration
public static readonly DependencyProperty AlternationIndexProperty
Field Value
DependencyProperty
GroupRenderModeProperty
Identifies the GroupRenderMode dependency property.
Declaration
public static readonly DependencyProperty GroupRenderModeProperty
Field Value
DependencyProperty
HasItemsProperty
Identifies the HasItems dependency property.
Declaration
public static readonly DependencyProperty HasItemsProperty
Field Value
DependencyProperty
IsGroupingProperty
Identifies the IsGrouping dependency property.
Declaration
public static readonly DependencyProperty IsGroupingProperty
Field Value
DependencyProperty
ItemContainerStyleProperty
Identifies the ItemContainerStyle dependency property.
Declaration
public static readonly DependencyProperty ItemContainerStyleProperty
Field Value
DependencyProperty
ItemTemplateProperty
Identifies the ItemTemplate dependency property.
Declaration
public static readonly DependencyProperty ItemTemplateProperty
Field Value
DependencyProperty
Properties
AlternationCount
Gets or sets the number of alternating item containers in the ItemsControl, which enables alternating containers to have a unique appearance.
GroupRenderMode
Gets or sets a value indicating the group render mode of the control.
Declaration
public GroupRenderMode GroupRenderMode { get; set; }
Property Value
HasItems
Gets a value that indicates whether the BaseItemsControl contains items. This is a dependency property.
IsGrouping
Gets a value that indicates whether the control is using grouping. This is a dependency property.
ItemContainerGenerator
Gets the ItemContainerGenerator.
Declaration
public IContainerGenerator ItemContainerGenerator { get; }
Property Value
The ItemContainerGenerator.
ItemContainerStyle
Gets or sets the Style that is applied to the container element generated for each item. This is a dependency property.
Declaration
public Style ItemContainerStyle { get; set; }
Property Value
Style
The Style that is applied to the container element generated for each item. The default value is null.
ItemTemplate
Gets or set the DataTemplate used to display each item. This is a dependency property.
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
DataTemplate
A DataTemplate that specifies the visualization of the data objects. The default value is null.
Methods
BringIndexIntoView(int)
Brings the item with the given index into view. The method will not work before the item containers have been generated.
Declaration
public void BringIndexIntoView(int index)
Parameters
index
The index of the item to be brought into view.
ClearContainerForGroupOverride(DependencyObject, object)
When overridden in a derived class, undoes the effects of the PrepareContainerForGroupOverride method.
Declaration
protected virtual void ClearContainerForGroupOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
The container element.
item
The item.
ClearContainerForItemOverride(DependencyObject, object)
When overridden in a derived class, undoes the effects of the PrepareContainerForItemOverride method.
Declaration
protected virtual void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
The container element.
item
The item.
GetAlternationIndex(DependencyObject)
Gets the AlternationIndex for the specified object.
Declaration
public static int GetAlternationIndex(DependencyObject element)
Parameters
element
DependencyObject
The object from which to get the AlternationIndex.
Returns
The value of the AlternationIndex.
GetContainerForItemOverride(object)
Creates or identifies the element that is used to display the given item.
Declaration
protected virtual DependencyObject GetContainerForItemOverride(object item)
Parameters
item
Returns
DependencyObject
The element that is used to display the given item.
GetItemsOwner(DependencyObject)
Returns the BaseItemsControl that the specified element hosts items for.
Declaration
public static BaseItemsControl GetItemsOwner(DependencyObject element)
Parameters
element
DependencyObject
The host element.
Returns
The BaseItemsControl that the specified element hosts items for, or null reference (Nothing in Visual Basic).
ItemsControlFromItemContainer(DependencyObject)
Returns the BaseItemsControl that owns the specified container element.
Declaration
public static BaseItemsControl ItemsControlFromItemContainer(DependencyObject container)
Parameters
container
DependencyObject
The container element to return the BaseItemsControl for.
Returns
The BaseItemsControl that owns the specified container element.
OnAlternationCountChanged(int, int)
Invoked when the AlternationCount property changes.
OnGroupRenderModeChanged()
Called when the virtualization mode changes.
Declaration
protected virtual void OnGroupRenderModeChanged()
OnItemContainerStyleChanged(Style, Style)
Invoked when the ItemContainerStyle property changes.
Declaration
protected virtual void OnItemContainerStyleChanged(Style oldItemContainerStyle, Style newItemContainerStyle)
Parameters
oldItemContainerStyle
Style
Old value of the ItemContainerStyle property.
newItemContainerStyle
Style
New value of the ItemContainerStyle property.
OnItemTemplateChanged(DataTemplate, DataTemplate)
Invoked when the ItemTemplate property changes.
Declaration
protected virtual void OnItemTemplateChanged(DataTemplate oldItemTemplate, DataTemplate newItemTemplate)
Parameters
oldItemTemplate
DataTemplate
The old ItemTemplate property value.
newItemTemplate
DataTemplate
The new ItemTemplate property value.
OnItemsChanged(NotifyCollectionChangedEventArgs)
Invoked when the Items property changes.
Declaration
protected virtual void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
e
NotifyCollectionChangedEventArgs
Information about the change.
OnItemsCollectionChanged(object, NotifyCollectionChangedEventArgs)
Called when this.Items collection changes.
Declaration
protected override void OnItemsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
sender
The sender.
e
NotifyCollectionChangedEventArgs
The NotifyCollectionChangedEventArgs instance containing the event data.
Overrides
OnItemsSourceChanged(object, object)
Called when ItemsSource property has changed.
PrepareContainerForGroupItemOverride(DependencyObject, object)
Prepares the specified element to display the specified item.
Declaration
protected virtual void PrepareContainerForGroupItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
item
PrepareContainerForItemOverride(DependencyObject, object)
Prepares the specified element to display the specified item.
Declaration
protected virtual void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
item