To allow the user to select more than one element simultaneously, set the property to Selection.Multiple. Use the selection-type property in UXML or lectionType property in C#. ListView.showBorder property in C# to true.īy default, the user can select one element in the list at a time. To display a border around the scrollable area, set the show-border property in UXML or the emHeight property in C# to the desired value. To set the height of a single item in pixels, set the item-height property in UXML or the Recycles these objects and re-binds them to new data items. The ListView creates multiple VisualElement objects for the visible items. fixedItemHeight when using CollectionVirtualizationMethod.FixedHeight It's also recommended to supply the following properties for more complex items: For the ListView to function correctly, you must supply at least a value for ![]() ![]() The logic required to create VisualElements, and to bind them to or unbind them from the data source, varies depending Theĭata-source list can contain elements of any type. Each VisualElement in the list is bound to a corresponding element in a data-source list. A ListView is a ScrollView with additional logic to display a list of vertically-arranged
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |