简体   繁体   中英

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. 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.

I have simple app Universal app 8.1 which reproduces problem. Here is the 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. For example LostFocus event is not firing and the inputs stays in focus state.

When you put this code in UWP project and deploy to Windows 10 mobile device/emulator, everything is fine.

Any ideas?

PS ContentDialog is working properly, but it isn't support 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.

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.

This is my test scenario:

1) Tap on TextBox

2) Tap on PasswordBox

3) Tap anywhere on the screen

4) Result (1.png)

  • TextBox is not selected

  • PasswordBox is not selected

  • Keyboard is hidden

5) Tap on button

6) Close MessageDialog using close button

7) Tap on TextBox

8) Tap on PasswordBox

10) Tap anywhere on the screen

11) Result (2.png)

  • TextBox is selected (sometimes)

  • PasswordBox is selected

  • Keyboard is shown

The newest version of OS pushed to Insider resolved the issue. Build 10.586.29.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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