ItemsRepeater.TryGetElement(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the realized UIElement that corresponds to the item at the specified index in the data source.
public:
virtual UIElement ^ TryGetElement(int index) = TryGetElement;
UIElement TryGetElement(int const& index);
public UIElement TryGetElement(int index);
function tryGetElement(index)
Public Function TryGetElement (index As Integer) As UIElement
Parameters
- index
-
Int32
int
The index of the item.
Returns
The UIElement that corresponds to the item at the specified index if the item is realized, or null if the item is not realized.
Remarks
An item is realized when a UIElement has been prepared to display it. Requesting the element for an item that is not realized does not cause it to be realized; instead it is reported as null.