#848 – IsDefaulted vs. IsDefault for a Button

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

 

Advertisement

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

One Response to #848 – IsDefaulted vs. IsDefault for a Button

  1. Pingback: Dew Drop – June 24, 2013 (#1,571) | Alvin Ashcraft's Morning Dew

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: