Running 2.5.35. I have a listview that has a usercontrol on the right side, but I cannot select the listview item with a short-tap. It is very inconsistent, only selecting about 10% of the time. When I do a long tap, however, the ListViewItem is selected.
Is this a bug, or is there a property that I have misselected? Does having a UserControl in the ListViewItem change the tap behavior?
Tested on a Samsung Galaxy S20.
Some code for context:
public void DeptToItems2()
{
lvDepartments.BeginUpdate(); // Start Updating Listview
lvDepartments.Items.Clear(); // Clear listview items
int i;
var loopTo = dl.departments.Count – 1;
for (i = 0; i <= loopTo; i++) // Loop through departmentList count
{
var d = dl.departments[i];
var li = new ListViewItem();
li.Tag = d.did;
var ucm = new ucDepartmentMobileInterface();
ucm.d = d;
ucm.frmMCCPD = this;
ucm.Dock = DockStyle.Fill;
ucm.lblDeptName.Text = d.name;
ucm.Tag = d.did;
li.RowHeight = 50;
li.Control = ucm;
lvDepartments.Items.Add(li);
}
lvDepartments.EndUpdate();
}
Hi Andrew,
do you have a URL where we can try that? Or could you wrap up the code in a test case?
You can either post here or send it to supportATwisej.com if it contains private information.
Did you have a chance to test with an IOS device?
Best regards
Frank
Please login first to submit.