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

TabControlViewBase.HeaderMenuCustomizations Property

Allows you to customize the Header Menu by adding new menu items or removing existing items.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public ObservableCollection<IControllerAction> HeaderMenuCustomizations { get; }

#Property Value

Type Description
ObservableCollection<IControllerAction>

An ObservableCollection object.

#Remarks

To add custom items to the TabControlViewBase Header Menu, use the HeaderMenuCustomizations property, as shown in the code snippet below:

<dx:DXTabControl x:Name="tabControl" >
    <dx:DXTabControl.View>
        <dx:TabControlStretchView ShowHeaderMenu="True">
            <dx:TabControlStretchView.HeaderMenuCustomizations>
                <dxb:InsertAction Index="0">
                    <dxb:BarCheckItem Content="Is Selected Item Enabled" IsChecked="{Binding ElementName=tabControl, Path=SelectedContainer.IsEnabled, Mode=TwoWay}"/>
                </dxb:InsertAction>
            </dx:TabControlStretchView.HeaderMenuCustomizations>
         </dx:TabControlStretchView>
    </dx:DXTabControl.View>
    ...
</dx:DXTabControl>
See Also