Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    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.1.dll

    NuGet Package: DevExpress.Win.Navigation

    #Declaration

    [DefaultValue(DefaultBoolean.Default)]
    [DXCategory("Behavior")]
    public virtual DefaultBoolean AllowButtonNavigation { get; set; }

    #Property Value

    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

    #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