Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windows 窗体的Form类具有AcceptButton属性,该属性允许在用户按下 Enter 时单击某个按钮。WPF的Window类有类似的功能吗?
它是按钮上的IsDefault属性:
<Button IsDefault="true">OK</Button>