Share via


RequestItemHandler Delegate

Represents the method to handle requests from a VirtualList to get and create an item if it is not available.

Syntax

  public delegate void RequestItemHandler(
  VirtualList  
  list
  ,
  int  index,
  ItemRequestCallback  callbackItem
);

Parameters

list

Microsoft.MediaCenter.UI.VirtualList.  The list that is requesting the item.

index

System.Int32.  The index of the item this is requested.

callbackItem

Microsoft.MediaCenter.UI.ItemRequestCallback.  The method to call back when the item is available.

Remarks

When an item is requested from a VirtualList, the internal storage is checked using VirtualList.IsItemAvailable to determine whether the item is available. If it is not, a RequestItemHandler delegate is specified to create the specified item.

Requirements

Reference: Microsoft.MediaCenter.UI

Namespace: Microsoft.MediaCenter.UI

Assembly: Microsoft.MediaCenter.UI.dll

Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later

See Also