共用方式為


ListView.SetupContent(Cell, Int32) Method

Definition

Application developers override this method to register event handlers for list view items.

protected override void SetupContent (Xamarin.Forms.Cell content, int index);
override this.SetupContent : Xamarin.Forms.Cell * int -> unit

Parameters

content
Cell

The cell to set up.

index
System.Int32

The index of the cell in the list of items.

Remarks

Application developers must call SetupContent(Cell, Int32) before performing any other action when overriding this method.

Applies to