[UWP] [Xbox]错误报告:关闭弹出窗口时,焦点参与会丢失。 [英] [UWP][Xbox] Bug Report: Focus engagement is lost when closing a popup.

查看:95
本文介绍了[UWP] [Xbox]错误报告:关闭弹出窗口时,焦点参与会丢失。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Xbox ONE上有关于Focus Engagement的问题。在我的应用程序中,我创建了一个填充了大量项目的ListView。由于它被一些其他交互元素包围,因此将其IsFocusEngagementEnabled属性设置为true似乎是个好主意。
ListView中的每个项目都会在单击时显示弹出窗口。问题是,一旦弹出窗口被解除(使用"B"游戏手柄按钮),焦点将返回到被点击的项目,但焦点参与将丢失。丢失我的意思是如果我按下"B"按钮,应用程序将导航
返回到另一页面或退出到仪表板,因为系统认为它不在"焦点参与模式"中。但是焦点停留在ListView内部,因此用户不能再与周围元素交互(必须滚动浏览所有元素才能离开)。

I've an issue regarding Focus Engagement on Xbox ONE. In my app I've created a ListView populated with lots of items. As it is surrounded by some other interactive elements it seemed to be a good idea to set its IsFocusEngagementEnabled property to true. Each item in ListView displays a popup on click. The problem is that once the popup is dismissed (using 'B' gamepad button) the focus returns to the clicked item but the focus engagement is lost. By lost I mean if I press the 'B' button the app will navigate back to another page or exit to dashboard as system thinks its not in "focus engaged mode" but the focus stays inside ListView so user cannot interact with surrounding elements anymore (must scroll through all the elements to leave).

下面我准备了一个重现问题的最小项目示例。有什么我做错了或是否是另一个平台 必须使用一些丑陋的解决方法来解决这些问题?

Below I've prepared a minimal project example which reproduces the issue. Is there anything I'm doing wrong or is it yet another platform nuisance that must be fix using some ugly workarounds?

VS17项目:

https://1drv.ms/u/s!AvIW9XXpAqZti7lotrqzDnAYhw-MQA

https://1drv.ms/u/s!AvIW9XXpAqZti7lotrqzDnAYhw-MQA

重现步骤:


  1. 参与焦点在ListView上。
  2. 点击"点击我以显示弹出窗口"按钮。
  3. 使用"B"按钮关闭弹出按钮。
  4. 按B键将焦点保留在ListView上。 

观察到的行为:

应用程序退出到仪表板(15064项目目标构建)或焦点停留在单击项目上(14393项目目标构建)

App exits to dashboard (15064 project target build) or focus stays on clicked item (14393 project target build)

预期行为:

留下焦点参与,按下按钮立即到达"焦点陷阱"。按钮。

Focus engagement is left and pressing up button immediately reaches "Focus trap" button.

环境:

Xbox ONE S,操作系统版本:10.0.15063.3054。

Xbox ONE S, OS version: 10.0.15063.3054.

推荐答案

嗨  kamnowod,

Hi kamnowod,

感谢您报告此问题,我可以重现IsFocusEngagementEnabled似乎使用您的上述样本失去了我身边的焦点。我还可以看到应用程序退出到仪表板(15063项目目标构建)或焦点停留在单击项目(14393项目
目标构建)。我会在内部频道报道。感谢您在我们的调查和研究过程中的耐心。

Thanks for reporting this issue, I can reproduce that IsFocusEngagementEnabled seems to lost focus in my side using your above sample. I can also see that App exits to dashboard (15063 project target build) or focus stays on clicked item (14393 project target build). I will reporting it in our internal channel. Thanks for your patience during our investigation and research.

致以最诚挚的问候,

Breeze


这篇关于[UWP] [Xbox]错误报告:关闭弹出窗口时,焦点参与会丢失。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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