If you set IsDefault to true, the button will become the default button for the window, that is, if the ENTER key is pressed when the current focus is not on any controlled control that accepts the ENTER key, the button press event will be activated. If the button event can be triggered due to this default action, then IsDefaulted will be true, otherwise it will be false. This means that if the "Default" button has focus, then IsDefaulted will be false, because by default the event will not be triggered.
IsDefaulted is a readonly property that only tells whether it is possible to click on the default button in the current focus state, that is, the button press event can be triggered by pressing ENTER when the button has no focus. IsDefault, we can set it to true, if we want this button to have this default behavior, that is, when the ENTER key is pressed, and even the button was not pressed, the focus button should start. We install IsDefault. A value of IsDefault set to true will remain true, but IsDefaulted will change its value depending on which control is currently in focus.
Nitin
source share