Back to Devexpress

DockLayoutManager.AllowLayoutItemRename Property

wpf-devexpress-dot-xpf-dot-docking-dot-docklayoutmanager-74e689f6.md

latest2.8 KB
Original Source

DockLayoutManager.AllowLayoutItemRename Property

Gets or sets whether layout 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? AllowLayoutItemRename { get; set; }
vb
Public Property AllowLayoutItemRename As Boolean?

Property Value

TypeDescription
Nullable<Boolean>

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

|

Remarks

To enable/forbid layout item renaming, use the AllowLayoutItemRename 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 LayoutController.Rename method.

If the AllowLayoutItemRename property is set to true , item renaming is supported, even when Customization Mode is not enabled. However, an end-user can initiate item renaming only in Customization Mode.

Setting the AllowLayoutItemRename 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 AllowLayoutItemRename option is set to false , the item cannot be renamed.

See Also

AllowRename

Rename(BaseLayoutItem)

EndRenaming()

CancelRenaming()

DockLayoutManager Class

DockLayoutManager Members

DevExpress.Xpf.Docking Namespace