Form Windows 窗体类具有 AcceptButton属性,它允许在用户按 Enter 时单击某些按钮。 Window class of WPF有类似的功能吗?
最佳答案
这是IsDefault按钮上的属性:
<Button IsDefault="true">OK</Button>
关于c# - WPF 窗口类中 AcceptButton 属性的模拟?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9109072/