Back to Devexpress

TabControlViewBase.HeaderMenuCustomizations Property

wpf-devexpress-dot-xpf-dot-core-dot-tabcontrolviewbase-7637b395.md

latest2.2 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public ObservableCollection<IControllerAction> HeaderMenuCustomizations { get; }
vb
Public ReadOnly Property HeaderMenuCustomizations As ObservableCollection(Of IControllerAction)

Property Value

TypeDescription
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:

xaml
<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

TabControlViewBase Class

TabControlViewBase Members

DevExpress.Xpf.Core Namespace