Analogue of AcceptButton property in WPF window class?
-
21-04-2021 - |
Frage
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?
Lösung
It's the IsDefault property on the Button:
<Button IsDefault="true">OK</Button>
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow