BaseContentContainer.ActionCustomization Event

Occurs whenever Navigation Bars within the current BaseContentContainer are to be displayed. Allows you to customize this container’s Navigation Bar Actions.

Namespace: DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly: DevExpress.XtraBars.v21.1.dll

Declaration

public event ContentContainerActionCustomizationEventHandler ActionCustomization

Event Data

The ActionCustomization event's data class is DevExpress.XtraBars.Docking2010.Views.WindowsUI.ContentContainerActionCustomizationEventArgs.

Remarks

The ActionCustomization event occurs between the WindowsUIView.NavigationBarsShowing and WindowsUIView.NavigationBarsShown events. Handle this event and call the Remove method to delete a custom action, like ‘Home’ or ‘Back’.

Actions specific to TileContainers and SplitGroups are defined in the TileContainerAction and SplitGroupAction classes respectively. All other actions are defined in the ContentContainerAction class.

For example, the following code removes the TileContainer’s ‘Back’ button and ‘Clear Selection’ button, visible only when an end-user checked one or multiple Tiles:

private void tileContainer1_ActionCustomizating(object sender, ContentContainerActionCustomizationEventArgs e) {
        e.Remove(ContentContainerAction.Back);
        e.Remove(TileContainerAction.ClearSelection);
}

To customize actions common to all Content Containers within the View, handle the WindowsUIView.ContentContainerActionCustomization event instead.

See Also