#848 – IsDefaulted vs. IsDefault for a Button
June 24, 2013 1 Comment
The IsDefault property can be set for a Button to indicate that you’d like the button to act as a default button for a window, i.e. activate when the user presses the ENTER key.
The IsDefaulted property is a read-only property that indicates if a Button is currently acting as the default button for a window, meaning that it would activate if the user pressed ENTER at this moment.
IsDefaulted will be true if all of the following is true:
- IsDefault for the Button is set to true
- Some other control currently has focus
- The control that currently has focus does not itself handle the ENTER key