Class BaseItemsControl
The base class for items control bound to data.
Inherited Members
Namespace: Telerik.Windows.Controls.GridView
Assembly: Telerik.Windows.Controls.GridView.dll
Syntax
public abstract class BaseItemsControl : DataControl, INotifyPropertyChanged, ISelectorInternal, IGeneratorHost, IGroupsProvider
Constructors
BaseItemsControl()
Fields
AlternationCountProperty
Identifies the AlternationCount dependency property.
Declaration
public static readonly DependencyProperty AlternationCountProperty
Field Value
System.
|
AlternationIndexProperty
Identifies the AlternationIndex dependency property.
Declaration
public static readonly DependencyProperty AlternationIndexProperty
Field Value
System.
|
GroupRenderModeProperty
Identifies the Group
Declaration
public static readonly DependencyProperty GroupRenderModeProperty
Field Value
System.
|
HasItemsProperty
Identifies the HasItems dependency property.
Declaration
public static readonly DependencyProperty HasItemsProperty
Field Value
System.
|
IsGroupingProperty
Identifies the IsGrouping dependency property.
Declaration
public static readonly DependencyProperty IsGroupingProperty
Field Value
System.
|
ItemContainerStyleProperty
Identifies the ItemContainerStyle dependency property.
Declaration
public static readonly DependencyProperty ItemContainerStyleProperty
Field Value
System.
|
ItemTemplateProperty
Identifies the ItemTemplate dependency property.
Declaration
public static readonly DependencyProperty ItemTemplateProperty
Field Value
System.
|
Properties
AlternationCount
Gets or sets the number of alternating item containers in the ItemsControl, which enables alternating containers to have a unique appearance.
Declaration
public int AlternationCount { get; set; }
Property Value
System.
|
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.
Declaration
public bool HasItems { get; }
Property Value
System.
|
IsGrouping
Gets a value that indicates whether the control is using grouping. This is a dependency property.
Declaration
public bool IsGrouping { get; }
Property Value
System.
|
ItemContainerGenerator
Gets the ItemContainerGenerator.
Declaration
public IContainerGenerator ItemContainerGenerator { get; }
Property Value
IContainer The ItemContainerGenerator. |
ItemContainerStyle
Gets or sets the System.
Declaration
public Style ItemContainerStyle { get; set; }
Property Value
System. The System. |
ItemTemplate
Gets or set the System.
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
System. A System. |
Methods
BringIndexIntoView(Int32)
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
System. 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
System. The container element. |
System. 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
System. The container element. |
System. The item. |
GetAlternationIndex(DependencyObject)
Gets the AlternationIndex for the specified object.
Declaration
public static int GetAlternationIndex(DependencyObject element)
Parameters
System. The object from which to get the AlternationIndex. |
Returns
System. 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
System.
|
Returns
System. 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
System. The host element. |
Returns
Base 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
System. The container element to return the BaseItemsControl for. |
Returns
Base The BaseItemsControl that owns the specified container element. |
OnAlternationCountChanged(Int32, Int32)
Invoked when the AlternationCount property changes.
Declaration
protected virtual void OnAlternationCountChanged(int oldAlternationCount, int newAlternationCount)
Parameters
System. The old value of AlternationCount. |
System. The new value of AlternationCount. |
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
System. Old value of the ItemContainerStyle property. |
System. New value of the ItemContainerStyle property. |
OnItemsChanged(NotifyCollectionChangedEventArgs)
Invoked when the Items property changes.
Declaration
protected virtual void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
System. Information about the change. |
OnItemsCollectionChanged(Object, NotifyCollectionChangedEventArgs)
Called when this.Items collection changes.
Declaration
protected override void OnItemsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
System. The sender. |
System. The System. |
Overrides
OnItemsSourceChanged(Object, Object)
Called when ItemsSource property has changed.
Declaration
protected override void OnItemsSourceChanged(object oldValue, object newValue)
Parameters
System. The old value. |
System. The new value. |
Overrides
OnItemTemplateChanged(DataTemplate, DataTemplate)
Invoked when the ItemTemplate property changes.
Declaration
protected virtual void OnItemTemplateChanged(DataTemplate oldItemTemplate, DataTemplate newItemTemplate)
Parameters
System. The old ItemTemplate property value. |
System. The new ItemTemplate property value. |
PrepareContainerForGroupItemOverride(DependencyObject, Object)
Prepares the specified element to display the specified item.
Declaration
protected virtual void PrepareContainerForGroupItemOverride(DependencyObject element, object item)
Parameters
System.
|
System.
|
PrepareContainerForItemOverride(DependencyObject, Object)
Prepares the specified element to display the specified item.
Declaration
protected virtual void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
System.
|
System.
|