New to Telerik UI for WPFStart a free 30-day trial

An interface that is implemented by classes which are responsible for generating user interface (UI) content on behalf of a host.

Definition

Namespace:Telerik.Windows.Controls.GridView

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

C#
public interface IContainerGenerator : IDisposable

Derived Classes: GridViewItemContainerGenerator

Inherited Members IDisposable.Dispose()

Methods

ContainerFromIndex(int)

DependencyObject

Return the UI element corresponding to the item at the given index within the ItemCollection.

C#
DependencyObject ContainerFromIndex(int index)
Parameters:indexintReturns:

DependencyObject

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.

C#
DependencyObject ContainerFromItem(object item)
Parameters:itemobjectReturns:

DependencyObject

Given a generated UI element, return the index of the corresponding item within the ItemCollection.

C#
int IndexFromContainer(DependencyObject container)
Parameters:containerDependencyObjectReturns:

int

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.

C#
object ItemFromContainer(DependencyObject container)
Parameters:containerDependencyObjectReturns:

object