Skip to main content
A newer version of this page is available. .

ControlNavigator.Buttons Property

Provides access to the navigator’s built-in and custom buttons.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DXCategory("Behavior")]
[SmartTagSearchNestedProperties]
public ControlNavigatorButtons Buttons { get; }

Property Value

Type Description
ControlNavigatorButtons

A ControlNavigatorButtons object which is the navigator’s buttons.

Remarks

The Buttons property provides access to the navigator’s built-in and custom buttons.

All built-in buttons are stored in the NavigatorButtonsBase.ButtonCollection inherited collection. These buttons can also be accessed individually with the properties exposed by the ControlNavigatorButtons class, e.g., ControlNavigatorButtons.First, ControlNavigatorButtons.Next, ControlNavigatorButtons.Edit, etc.

Custom buttons can be added using the NavigatorButtonsBase.CustomButtons inherited collection. By default, custom buttons are displayed after built-in buttons. To change the display order of custom buttons, use their NavigatorCustomButton.Index properties.

To respond to button clicks, handle the NavigatorBase.ButtonClick event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Buttons property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also