选择SurfaceListBox中的项目 [英] Selecting items in a SurfaceListBox

查看:74
本文介绍了选择SurfaceListBox中的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在OnSelectionChanged中选择了一个项目之后我设置了selectedItem = null,但是项目仍然在列表中显示为选中,即使它实际上没有 - 我完成拖动后如何取消突出显示上一个选中的项目它出来了吗?

After an item is selected in the OnSelectionChanged I set the selectedItem = null, but the item still appears selected in the list even though it's really not - how do I unhighlight the last selected item once I am done with dragging it out?

推荐答案

您是否尝试将selectedINdex proeprty设置为-1?
have you try to set the selectedINdex proeprty to -1 ?


这篇关于选择SurfaceListBox中的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆