[英]How to highlight a column of a ListView
如何动态突出显示WPF ListView
的单击ListView
灰色?
Use the ListView.Selection
change event with delegate handler like : 将ListView.Selection
更改事件与委托处理程序一起使用,例如:
public delegate void SelectionChangedEventHandler(
Object sender,
SelectionChangedEventArgs e
)
it will raise event when Item index changes, look for the SelectionChangedEventArgs
it had two property, 它将在Item索引更改时引发事件,查找具有两个属性的SelectionChangedEventArgs
,
AddedItems
and RemovedItems
, then change the Background
of the ListViewItem
in the collection of AddedItems
& RemovedItems
AddedItems
和RemovedItems
,然后更改Background
中的ListViewItem
的集合中AddedItems
& RemovedItems
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.