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

BarOptions.DisableCustomization Property

Gets or sets whether the bar can be customized using drag-and-drop operations.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

[XtraSerializableProperty]
[DefaultValue(false)]
public virtual bool DisableCustomization { get; set; }

Property Value

Type Default Description
Boolean **false**

true, if customization of bar links is disabled; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to DisableCustomization
Bar
.OptionsBar.DisableCustomization

Remarks

If the DisableCustomization property is set to false, the end-user can perform drag-and-drop operations on links to add them to or delete them from the bar. Links can be dragged while holding the ALT key. Combining the ALT and CTRL key allows you to copy links while dragging. Links can also be dragged when the Customization Window is visible.

To disable customization using drag-and-drop, set the DisableCustomization property to true.

The Customization Window is available if the BarManager.AllowCustomization property is set to true.

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