Hello
I am creating a simple ListView and all I want is to get rid of that grey selection area.
Steps to reproduce:
- Create a ListView
- Fill it with elements via code
- Just scroll. No matter what options you have selected for the ListView, it displays that grey background for the top element.
I imagine this is a bug, but couldn’t it be fixed with some CSS for the moment?
I don’t know how to refer to that particular background (in CSS or C#) in order to deactivate it.
Also,
private void BindItem(VisualElement e, int index)
{
CustomizedTeam customizedTeam = customizedTeams[index];
e.Q<Label>().text = customizedTeam.name;
e.RegisterCallback<ClickEvent>(TeamItem_clicked);
}
Registering clicks doesn’t work like I wrote it. Any hints.
