Skip to main content

ButtonEdit.AllowDefaultButton Property

Gets or sets whether the editor’s default button is displayed. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public bool? AllowDefaultButton { get; set; }

Property Value

Type Description
Nullable<Boolean>

true to display the editor’s default button; otherwise, false.

Remarks

Use the AllowDefaultButton property to control whether the default button that relates to an editor’s functionality (such as the dropdown button of a combo box editor) is displayed within the editor. When the editor’s default button is clicked, the ButtonEdit.DefaultButtonClick event is raised.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowDefaultButton 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