Gets a value that indicates whether a Button is the button that is activated when a user presses ENTER.
Assembly: PresentationFramework (in PresentationFramework.dll)
The IsDefault property is set to true and the control that has focus does not accept ENTER as input. For example, in the Run dialog box, the OK button is the default button. When focus is on the text box, on the OK button is true because a user can activate the button by pressing ENTER.property is true when the
If the default button has focus, OnKeyDown method handles ENTER, and it is not necessary for to be set to true.is false. This is because the
Available since 3.0