Вопрос

The Form class of windows forms has the AcceptButton property, which allows certain button to be clicked when a user press Enter. Does the Window class of WPF has similar feature?

Это было полезно?

Решение

It's the IsDefault property on the Button:

<Button IsDefault="true">OK</Button>
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top