【发布时间】:2013-04-21 21:36:36
【问题描述】:
当我启用键盘访问并以编程方式将列表视图滚动到项目 nr 50 时,我想将焦点项目设置为 nr 50,因此如果用户按下向下箭头,他将从 nr 50 向下滚动。当前列表跳转到 nr 1,因为该项目已获得焦点。
我尝试将 selectedItem 属性设置为 50,但行为仍然相同。
此解决方案似乎适用于 HTML/JS 应用程序,但我没有看到与 C# 相同的 API? how to set a focus of Listview item in Metro apps?
yourListView.currentItem = { index: 8, hasFocus: true, showFocus: true }
【问题讨论】:
标签: c# listview windows-store-apps listviewitem