none
[UWP]Defaut keyboard instead of NumericPin keyboard shown to PaswordBox first time after machine is rebooted

    Question

  • Hi,

    I have a UWP APP (with SDK 17763), contains PasswordBox which been installed to windows OS 1809 machine, has touchable screen. in settings->device->Typing->Touch keyboard,  I toggled on "Show the touch keyboard when not in tablet mode and others no keyboard attached"

    My app shows default keyboard every first time after it installed or after machine is rebooted. second time or later opening

    will show the number keyboard.

    Can anybody explain to me, why this happening. 

    BR.

    Lishan


    Thursday, February 7, 2019 10:11 AM

All replies

  • Hi,

    Well currently I don't have such a touch device (Build 1809) here. I need some time to find a device to test here. 

    I have some other question before make a test about this. Is it just simple PasswordBox that enough to reproduce the issue? Do you have any code snippet about this? It would be better if you could off a code snippet here.

    Best regards,

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, February 8, 2019 4:23 AM
    Moderator
  • Hi Roy,

    It is just a simple PasswordBox in UWP, as shown below the MainPage.xml

    <Page
        x:Class="passwordbox.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="using:passwordbox"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

        <Grid>
            <PasswordBox InputScope="NumericPin"></PasswordBox>
        </Grid>
    </Page>

    I found out that virtual keyboard works differently in Win OS 1809. after I right click the Taskbar, then select "show touch keyboard button". the problem disappeared. I have no idea why it works if I show the touch keyboard button in Taskbar.

    BR.

    Lishan

    Monday, February 11, 2019 10:24 AM
  • Hi,

    I asked other engineers to test about this issue in touch screen but not in Surface. We could not reproduce your issue. Have you tried this on other devices? Do you get the same behavior?

    Best regards,

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, February 12, 2019 8:06 AM
    Moderator