ItemsView<TVisual>.SetupContent(TVisual, Int32) Method

Definition

Performs any additional setup for the content at creation time.

protected virtual void SetupContent (TVisual content, int index);
abstract member SetupContent : 'Visual * int -> unit
override this.SetupContent : 'Visual * int -> unit

Parameters

content
TVisual

The visual content to setup.

index
System.Int32

The index of the content.

Implements

Remarks

This method is called when the ItemsView<TVisual> is creating visuals for user items. At this point, the BindingContext will have been set. You can override this method to perform additional setup for content specific to your ItemsView<TVisual> subclass. ListView, for example, uses this method to set Parent to itself.

Applies to