<Button Content="分析" HorizontalAlignment="Left" Margin="380,10,0,0" VerticalAlignment="Top" Width="75" Name="分析" Click="分析_Click" IsDefault="True"/> 添加IsDefault="True"就可以实现