windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitembuttonedit-1f09f9d4.md
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
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Behavior")]
public virtual DefaultBoolean AllowButtonNavigation { get; set; }
<DefaultValue(DefaultBoolean.Default)>
<DXCategory("Behavior")>
Public Overridable Property AllowButtonNavigation As DefaultBoolean
| Type | Default | Description |
|---|---|---|
| DefaultBoolean | Default |
true to allow users to focus ButtonEdit buttons with the keyboard; otherwise, false.
|
Available values:
| Name | Description | Return 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
|
The Default value depends on the WindowsFormsSettings.KeyboardNavigationExtensions property value.
Enable the AllowButtonNavigation option to allow users to perform the following actions:
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