wpf-devexpress-dot-xpf-dot-docking-dot-docklayoutmanager-80369b50.md
A collection of modification actions to be performed on context menus for dock panels.
Namespace : DevExpress.Xpf.Docking
Assembly : DevExpress.Xpf.Docking.v25.2.dll
NuGet Package : DevExpress.Wpf.Docking
public BarManagerActionCollection ContextMenuCustomizations { get; }
Public ReadOnly Property ContextMenuCustomizations As BarManagerActionCollection
| Type | Description |
|---|---|
| BarManagerActionCollection |
A BarManagerActionCollection object that contains modification actions.
|
Dock panels support context menus, invoked by right-clicking the panel’s caption:
You can modify these menus by adding modification actions to the ContextMenuCustomizations collection. The actions are represented by objects that implement the DevExpress.Xpf.Bars.IBarManagerControllerAction interface. Some of these objects are:
For information on all the available customization actions, see Bar Actions.
This example shows how to customize a panel’s context menu via customization actions.
Menu customization actions are added via the DockLayoutManager.ContextMenuCustomizations collection.
<dxdo:DockLayoutManager.ContextMenuCustomizations>
<!--Adds a new About menu command at the top-->
<dxb:BarButtonItem Name="bAbout" CategoryName="Help" Content="About" ItemClick="bAbout_ItemClick" dxb:BarItemLinkActionBase.ItemLinkIndex="0" />
<!--Add a separator-->
<dxb:InsertBarItemLinkAction ItemLinkIndex="1">
<dxb:BarItemLinkSeparator />
</dxb:InsertBarItemLinkAction>
</dxdo:DockLayoutManager.ContextMenuCustomizations>
See Also