Back to Devexpress

DockLayoutManager.AllowDockItemRename Property

wpf-devexpress-dot-xpf-dot-docking-dot-docklayoutmanager-3a7b5c4b.md

latest2.4 KB
Original Source

DockLayoutManager.AllowDockItemRename Property

Gets or sets whether dock items can be renamed. This is a dependency property.

Namespace : DevExpress.Xpf.Docking

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

NuGet Package : DevExpress.Wpf.Docking

Declaration

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

Property Value

TypeDescription
Nullable<Boolean>

true if dock items can be renamed; otherwise, false.

|

Remarks

To enable/forbid dock item renaming, use the AllowDockItemRename option.

If this property is set to null , item renaming is enabled in Customization Mode. An end-user can rename an item via the context menu. In code, you can initiate item renaming via the DockController.Rename method.

If the AllowDockItemRename property is true , you can call the Rename(BaseLayoutItem) method to rename the item even when Customization Mode is disabled.

Setting the AllowDockItemRename property to false prevents the item from being renamed.

To prevent a specific item from being renamed, set the item’s BaseLayoutItem.AllowRename option to false. If the BaseLayoutItem.AllowRename property is set to true and the AllowDockItemRename option is set to false , the item cannot be renamed.

See Also

AllowRename

DockLayoutManager Class

DockLayoutManager Members

DevExpress.Xpf.Docking Namespace