我在XAML中有一个按钮:
<Button Content="Login" x:Name="loginButton" Grid.Row="7" Grid.Column="3"
Margin="200,30,0,0" Grid.RowSpan="2" Height="50" Width="150"
VertialAlignment="Top" Click="loginButton_Click" ClickMode="Press"
FontSize="24" FontFamily="Calibri" Style="{StaticResource AlbaabButtonStyle}">
</Button>
当用户点击回车键时,他必须登录到他的帐户。如何在c#生成按Enter键事件?