With CSHTML5 v2 (Bridge version)
In WPF the user can press tab to go to next input field.
In HTML the label are getting the focus.
You can see focussed element in debug console document.activeElement
Sincerely,
Remi
Code: Select all
<Grid Grid.Row="1" Width="250" Height="160" Background="Beige" HorizontalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="150"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition Height="40"/>
<RowDefinition Height="40"/>
<RowDefinition Height="40"/>
</Grid.RowDefinitions>
<Label Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center">Identifiant:</Label>
<TextBox Grid.Column="1" Grid.Row="0" HorizontalAlignment="Center" x:Name="txtLogin" Width="120" Margin="5" Padding="5" />
<Label Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center">Mot de passe:</Label>
<PasswordBox Grid.Column="1" Grid.Row="1" HorizontalAlignment="Center" x:Name="txtPassword" Width="120" Margin="5" Padding="5"/>
<Label Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center">Serveur:</Label>
<TextBox Grid.Column="1" Grid.Row="2" HorizontalAlignment="Center" x:Name="txtServer" Width="120" Margin="5" Padding="5"/>
<Button Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="2" Margin="5">S'identifier</Button>
</Grid>