CompatibilitySettings.UseLegacyDeleteButtonInButtonEdit Property

Gets or sets whether to use the legacy Null Value button in the ButtonEdit editor and its descendants.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Data.Desktop.v20.1.dll

Declaration

public static bool UseLegacyDeleteButtonInButtonEdit { get; set; }
Public Shared Property UseLegacyDeleteButtonInButtonEdit As Boolean

Property Value

Type Description
Boolean

true, to use the legacy Null Value button; otherwise, false.

Remarks

ButtonEdit allows you to enable the Null Value (delete) button and places it within the editor's edit box (set the NullValueButtonPlacement property to EditBox). The editor's ActualButtons property returns a collection of all the buttons displayed within the editor including the Null Value button.

In versions prior to v19.1, the ActualButtons collection items were of the ButtonInfo type.

In version 19.1, we changed the Null Value button design to match the appearance of a similar button in GridControl's search panel. It also became possible to re-use this button in your application.

For this, we implemented a new ButtonInfo type - DeleteButtonInfo.

When NullValueButtonPlacement is set to EditBox, ActualButtons now contains this button type instead of ButtonInfo. If you use this property to customize the built-in buttons and check that the button type equals ButtonInfo, modify your implementation to use the DeleteButtonInfo type.

In versions prior to v19.1, the Null Value button is disabled when the editor is read-only. Starting with v19.1, the Null Value button is hidden for the read-only editors.

Starting with v19.1.4, you can set the UseLegacyDeleteButtonInButtonEdit property to true to return to the old appearance and behavior.

See Also