NavigationPaneView.MenuCustomizations Property
Allows you to customize the Navigation Pane Customization Menu by adding new menu items or removing existing items.
Namespace: DevExpress.Xpf.NavBar
Assembly: DevExpress.Xpf.NavBar.v24.1.dll
NuGet Package: DevExpress.Wpf.NavBar
Declaration
Property Value
Type | Description |
---|---|
ObservableCollection<DevExpress.Xpf.Bars.IBarManagerControllerAction> | The ObservableCollection that contains customization menu items. |
Remarks
The MenuCustomizations property provides access to the collection of actions available in the Navigation Pane Customization Menu. This allows you to customize the Navigation Pane Customization Menu by adding new menu items or removing existing items. The following code snippet shows how to add the BarCheckItem and BarItemLinkSeparator to the menu.
xmlns:dxn="http://schemas.devexpress.com/winfx/2008/xaml/navbar"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
<dxn:NavBarControl>
<dxn:NavBarControl.View>
<dxn:NavigationPaneView>
<dxn:NavigationPaneView.MenuCustomizations>
<dxb:BarCheckItem Name="checkItem1" Content="Custom action" dxb:BarItemLinkActionBase.ItemLinkIndex="0" CheckedChanged="checkItem1_CheckedChanged_1"/>
<dxb:BarItemLinkSeparator dxb:BarItemLinkActionBase.ItemLinkIndex="1" />
</dxn:NavigationPaneView.MenuCustomizations>
</dxn:NavigationPaneView>
</dxn:NavBarControl.View>
</dxn:NavBarControl>
See Also