The event handler receives an argument of type DevExpress.XtraBars.Docking2010.Views.WindowsUI.ContentContainerActionCustomizationEventArgs containing data related to this event.
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:
C# |
private void tileContainer1_ActionCustomizating(object sender, ContentContainerActionCustomizationEventArgs e) {
e.Remove(ContentContainerAction.Back);
e.Remove(TileContainerAction.ClearSelection);
}
|
VB |
Private Sub tileContainer1_ActionCustomizating(ByVal sender As Object, ByVal e As ContentContainerActionCustomizationEventArgs)
e.Remove(ContentContainerAction.Back)
e.Remove(TileContainerAction.ClearSelection)
End Sub
|
To customize actions common to all Content Containers within the View, handle the WindowsUIView.ContentContainerActionCustomization event instead.