Class ListView.UxmlTraits
Defines ListView.UxmlTraits for the ListView.
Inheritance
ListView.UxmlTraits
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public class UxmlTraits : BindableElement.UxmlTraits
Remarks
This class defines the ListView element properties that you can use in a UI document asset (UXML file).
Properties
uxmlChildElementsDescription
Returns an empty enumerable, as list views usually don't have child elements.
Declaration
public override IEnumerable<UxmlChildElementDescription> uxmlChildElementsDescription { get; }
Property Value
Type | Description |
---|---|
IEnumerable<UxmlChildElementDescription> | An empty enumerable. |
Overrides
Methods
Init(VisualElement, IUxmlAttributes, CreationContext)
Initializes ListView properties using values from the attribute bag.
Declaration
public override void Init(VisualElement ve, IUxmlAttributes bag, CreationContext cc)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | ve | The object to initialize. |
IUxmlAttributes | bag | The attribute bag. |
CreationContext | cc | The creation context; unused. |