我试着去理解this.but,这个解决方案是在angular中实现的,我不知道如何在javascript中使用它。Issues changing the background colour of the currently selected item in a ListView - Nativescript/Angular2index: ' + args.index + ' tapped');
args.object.backgroundColor =
我有一个我希望是一个简单的解决方案给你们,好的,聪明的人们。我有一个Windows form app (C#),它有2个列表视图。用户将从listview1中选择至少一项(我们将其称为people),并从listview2中至少选择一项(我们将其称为offices)。重点是将人员分配到办公室,并将其保存在数据库中。问题是,一旦他们从一个列表视图中选择一个项目,然后单击另一个列表视图上的任何内容,它就会从初始列表视图中清除显示的选项。我
private void button1_Click(object sender, EventArgs e) try int i=listView1.SelectedItems.Count; for (int k = 0; i < listView1.SelectedItems.Count; k++)