Class GridViewItemContainerGenerator
An GridViewItemContainerGenerator is responsible for generating the UI on behalf of its host (e.g. BaseItemsControl). It maintains the association between the items in the control's data view and the corresponding UIElements. The control's item-host can ask the GridViewItemContainerGenerator for a Generator, which does the actual generation of UI.
Inheritance
Namespace: Telerik.Windows.Controls.GridView
Assembly: Telerik.Windows.Controls.GridView.dll
Syntax
public sealed class GridViewItemContainerGenerator : Object, IRecyclingItemContainerGenerator, IItemContainerGenerator, IContainerGeneratorInternal, IContainerGenerator, IDisposable, IWeakEventListener<NotifyCollectionChangedEventArgs>, IWeakEventListener<PropertyChangedEventArgs>
Methods
add_ItemsChanged(ItemsChangedEventHandler)
Declaration
public void add_ItemsChanged(ItemsChangedEventHandler value)
Parameters
ItemsChangedEventHandler
value
|
ContainerFromIndex(Int32)
Return the UI element corresponding to the item at the given index within the ItemCollection.
Declaration
public DependencyObject ContainerFromIndex(int index)
Parameters
System.Int32
index
|
Returns
System.Windows.DependencyObject
|
Implements
ContainerFromItem(Object)
Return the UI element corresponding to the given item. Returns null if the item does not belong to the item collection, or if no UI has been generated for it.
Declaration
public DependencyObject ContainerFromItem(object item)
Parameters
System.Object
item
|
Returns
System.Windows.DependencyObject
|
Implements
Dispose()
IDisposable.
Declaration
public void Dispose()
IndexFromContainer(DependencyObject)
Given a generated UI element, return the index of the corresponding item within the ItemCollection.
Declaration
public int IndexFromContainer(DependencyObject container)
Parameters
System.Windows.DependencyObject
container
|
Returns
System.Int32
|
Implements
ItemFromContainer(DependencyObject)
Return the item corresponding to the given UI element. If the element was not generated as a container for this generator's host, the method returns DependencyProperty.UnsetValue.
Declaration
public object ItemFromContainer(DependencyObject container)
Parameters
System.Windows.DependencyObject
container
|
Returns
System.Object
|
Implements
remove_ItemsChanged(ItemsChangedEventHandler)
Declaration
public void remove_ItemsChanged(ItemsChangedEventHandler value)
Parameters
ItemsChangedEventHandler
value
|
Events
ItemsChanged
The ItemsChanged event is raised by a GridViewItemContainerGenerator to inform layouts that the items collection has changed.
Declaration
public event ItemsChangedEventHandler ItemsChanged
Event Type
ItemsChangedEventHandler
|
StatusChanged
The StatusChanged event is raised by a GridViewItemContainerGenerator to inform controls that its status has changed.
Declaration
public event EventHandler StatusChanged
Event Type
System.EventHandler
|