ItemsView<TVisual>.SetupContent(TVisual, 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.
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.