简体   繁体   English

Windows 10的设备/模拟器上的MessageDialog出现WP 8.1(RT)问题

[英]WP 8.1 (RT) issue with MessageDialog on device/emulator with Windows 10

I recently finished application which is using Universal Apps 8.1 technology. 我最近完成了使用Universal Apps 8.1技术的应用程序。 Now I'm testing my application on device with Windows 10 and also on emulator on version 10.0.10586.0 and I have big problem with MessageDialog. 现在,我正在使用Windows 10的设备上以及在10.0.10586.0版的模拟器上测试我的应用程序,而MessageDialog则存在很大问题。

I have simple app Universal app 8.1 which reproduces problem. 我有一个简单的应用程序通用应用程序8.1,它重现了问题。 Here is the XAML: 这是XAML:

<StackPanel>
    <TextBox />
    <PasswordBox />
    <Button Click="Button_Click" />
</StackPanel>

and there is an event in code-behind: 并且在代码隐藏中有一个事件:

private async void Button_Click(object sender, RoutedEventArgs e)
{
    MessageDialog msgDialog = new MessageDialog("a");
    await msgDialog.ShowAsync();
}

When user clicks on inputs, everything is fine. 当用户单击输入时,一切都很好。 But when users taps on button, MessageDialog is displayed, and after that, things get messy and inputs stops to working properly. 但是,当用户点击按钮时,将显示MessageDialog,此后,事情变得混乱,输入停止正常工作。 For example LostFocus event is not firing and the inputs stays in focus state. 例如,LostFocus事件未触发,并且输入保持在焦点状态。

When you put this code in UWP project and deploy to Windows 10 mobile device/emulator, everything is fine. 当您将此代码放在UWP项目中并部署到Windows 10移动设备/模拟器时,一切都很好。

Any ideas? 有任何想法吗?

PS ContentDialog is working properly, but it isn't support Windows 8.1. PS ContentDialog正常运行,但不支持Windows 8.1。

EDIT: 编辑:

Here: https://onedrive.live.com/redir?resid=9F03F4A20B9FFCD!24843&authkey=!AHPXxcxSoPJnw3U&ithint=file%2czip is zip with sample app and screenshots. 此处: https : //onedrive.live.com/redir? resid = 9F03F4A20B9FFCD!24843 & authkey =! AHPXxcxSoPJnw3U & ithint = file% 2czip是包含示例应用程序和屏幕截图的zip文件。

I've tested this on Visual Studio 2015 Update 1 on emulator with version 10.0.10586 and also on device with the same version. 我已经在版本10.0.10586的模拟器和具有相同版本的设备的Visual Studio 2015 Update 1上对此进行了测试。

This is my test scenario: 这是我的测试场景:

1) Tap on TextBox 1)点击文本框

2) Tap on PasswordBox 2)点击密码框

3) Tap anywhere on the screen 3)点击屏幕上的任意位置

4) Result (1.png) 4)结果(1.png)

  • TextBox is not selected 未选择文本框

  • PasswordBox is not selected 未选择密码框

  • Keyboard is hidden 键盘已隐藏

5) Tap on button 5)点击按钮

6) Close MessageDialog using close button 6)使用关闭按钮关闭MessageDialog

7) Tap on TextBox 7)点击文本框

8) Tap on PasswordBox 8)点击密码框

10) Tap anywhere on the screen 10)点击屏幕上的任意位置

11) Result (2.png) 11)结果(2.png)

  • TextBox is selected (sometimes) 选择了TextBox(有时)

  • PasswordBox is selected 选择了密码框

  • Keyboard is shown 显示键盘

The newest version of OS pushed to Insider resolved the issue. 推送到Insider的最新版本的OS解决了该问题。 Build 10.586.29. 内部版本10.586.29。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM