TabIndex似乎不适用于windows2010的vs2010表达式

问题描述:

我有一些控制,我设置tabindex为我想停止的控件。我使用模拟器来测试它。在键盘上输入确认按钮后,光标停留在文本框上。有人会告诉我的链接或代码,使其工作?提前致谢。TabIndex似乎不适用于windows2010的vs2010表达式

下面是我的控件代码:

<TextBox x:Name="txtUser" Grid.Row="1" Grid.Column="2" IsTabStop="True" TabIndex="1" Style="{StaticResource txtStyle_24}" FontSize="32" /> 
<TextBlock x:Name="Password" Text="Password :" Grid.Row="2" Grid.Column="1" Style="{StaticResource LabelStyle_24}" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="32" Foreground="{StaticResource PhoneAccentBrush}" /> 
    <PasswordBox x:Name="psd" PasswordChar="*" Grid.Row="2" Grid.Column="2" IsTabStop="True" 
        TabIndex="2" Style="{StaticResource PasswordBoxStyle_24}" FontSize="32"/> 

TabIndex如果你想将焦点移动到下一个TextBox,订阅KeyUp事件,并检查e.Key == Keys.Enter没有意义的Windows Phone

。比移动重点与textBox.Focus()

我看到此行为,但现在找不到链接