类似与winform中窗体的AcceptButton属性,在wpf中,需要将按钮的IsDefault设置为true就行。
转载于:https://www.cnblogs.com/luofuxian/p/8953983.html