且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何突出显示列表框windows phone中的选定项目?

更新时间: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.