Skip to main content

RibbonTab Class

A RibbonControl tab item.

Namespace: DevExpress.WinUI.Ribbon

Assembly: DevExpress.WinUI.Ribbon.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[ContentProperty(Name = "Groups")]
public class RibbonTab :
    DXLogicalPanel,
    ILogicalChild

The following members return RibbonTab objects:

Remarks

A RibbonTab item can contain the following elements:

The following code sample displays Home, Insert, and Draw RibbonControl tabs:

<Window ... 
    xmlns:dxr="using:DevExpress.WinUI.Ribbon">
    <Grid>
        <dxr:RibbonControl>
            <dxr:RibbonControl.Tabs>
                <dxr:RibbonTab Caption="Home" >
                    <dxr:RibbonGroup Caption="File">
                        <dxr:RibbonButton Content="Open"/>
                        <!-- ... -->
                    </dxr:RibbonGroup>
                </dxr:RibbonTab>
                <dxr:RibbonTab Caption="Insert" >
                    <!-- ... -->
                </dxr:RibbonTab>
                <dxr:RibbonTab Caption="Draw" >
                    <!-- ... -->
                </dxr:RibbonTab>
            </dxr:RibbonControl.Tabs>
        </dxr:RibbonControl>
    </Grid>
</Window>

Use the Caption property to specify the RibbonTab‘s caption.

Customize Appearance

You can use the following properties to customize the RibbonTab area’s appearance:

Property Description
HoverBackground Gets or sets a ribbon tab header’s hovered state background. This is a dependency property.
HoverForeground Gets or sets the ribbon tab header’s hovered state foreground. This is a dependency property.
NormalBackground Gets or sets a ribbon tab header’s normal state background. This is a dependency property.
NormalForeground Gets or sets a ribbon tab header’s normal state foreground. This is a dependency property.
SelectedBackground Gets or sets a ribbon tab header’s selected state background. This is a dependency property.
SelectedForeground Gets or sets a ribbon tab header’s selected state foreground. This is a dependency property.

Inheritance

Object
DependencyObject
UIElement
FrameworkElement
Panel
DevExpress.WinUI.Core.Internal.DXLogicalPanel
RibbonTab
See Also