Back to Devexpress

RepositoryItemButtonEdit.AllowButtonNavigation Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitembuttonedit-1f09f9d4.md

latest2.7 KB
Original Source

RepositoryItemButtonEdit.AllowButtonNavigation Property

Gets or sets whether to allow users to focus ButtonEdit buttons with the keyboard.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Behavior")]
public virtual DefaultBoolean AllowButtonNavigation { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<DXCategory("Behavior")>
Public Overridable Property AllowButtonNavigation As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

true to allow users to focus ButtonEdit buttons with the keyboard; otherwise, false.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

The Default value depends on the WindowsFormsSettings.KeyboardNavigationExtensions property value.

Enable the AllowButtonNavigation option to allow users to perform the following actions:

  • Press the Tab key to focus the first editor button.
  • Use Left and Right Arrows to navigate between buttons and the Space/Enter key to execute the button action.
  • Press Shift+Tab or Esc to move the focus back to the text field.

If you set the RepositoryItemButtonEdit.TextEditStyle property to HideTextEditor and AllowButtonNavigation to true, the ButtonEdit focuses its first button once the editor gets focus.

See Also

RepositoryItemButtonEdit Class

RepositoryItemButtonEdit Members

DevExpress.XtraEditors.Repository Namespace