Back to Devexpress

ButtonEditSettings.AllowDefaultButton Property

wpf-devexpress-dot-xpf-dot-editors-dot-settings-dot-buttoneditsettings-8b781c92.md

latest3.2 KB
Original Source

ButtonEditSettings.AllowDefaultButton Property

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

Namespace : DevExpress.Xpf.Editors.Settings

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool? AllowDefaultButton { get; set; }
vb
Public Property AllowDefaultButton As Boolean?

Property Value

TypeDescription
Nullable<Boolean>

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowDefaultButton
TokenEditorBehavior

.NewTokenEditSettings .AllowDefaultButton

| | TokenEditorBehavior |

.TokenEditSettings .AllowDefaultButton

|

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 ButtonEditSettings.DefaultButtonClick event is raised.

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.

wpf-synchronous-theme-preload-with-splashscreen/CS/ThemePreloadwithSplashscreen/ComplexWindow.xaml#L219

xml
HorizontalContentAlignment="Stretch"
AllowDefaultButton="False"
ApplyItemTemplateToSelectedItem="True"

See Also

DefaultButtonClick

ButtonEditSettings Class

ButtonEditSettings Members

DevExpress.Xpf.Editors.Settings Namespace