Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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