更新时间:2023-01-01 07:44:42
你可以在你的datacontext struct后面添加一个prop "isselected".
you can add a prop "isselected" in your datacontext struct behind.
and += 列表的事件SelectionChanged"
and += the list's event "SelectionChanged"
您可以从句柄 args 中获取上下文数据:
you can get context data from the handle args :
public IList AddedItems { get; }
public IList RemovedItems { get; }
改变他们的 isselected 属性.
change their isselected prop.