문제

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