Back to Devexpress

RibbonControl.SupportSidePanels Property

wpf-devexpress-dot-xpf-dot-ribbon-dot-ribboncontrol-4c2011d3.md

latest2.4 KB
Original Source

RibbonControl.SupportSidePanels Property

Gets or sets whether the RibbonControl can be integrated into the window header when there are side panels in the layout. This is a dependency property.

Namespace : DevExpress.Xpf.Ribbon

Assembly : DevExpress.Xpf.Ribbon.v25.2.dll

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public bool SupportSidePanels { get; set; }
vb
Public Property SupportSidePanels As Boolean

Property Value

TypeDescription
Boolean

true if the RibbonControl can be integrated into the window header when side panels are in the layout; otherwise, false.

|

Remarks

The following code snippet integrates the RibbonControl into the window header when there are side panels in the layout:

xaml
<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <Border Grid.Column="0" Grid.RowSpan="2" Width="50" Background="AliceBlue">
        <TextBlock Text="Left" ... />
    </Border>
    <dxr:RibbonControl Grid.Column="1"
                       SupportSidePanels="True">
    </dxr:RibbonControl>
    <Border Grid.Column="2" Grid.RowSpan="2" Width="50" Background="AliceBlue">
        <TextBlock Text="Right" ... />
    </Border>
</Grid>

See Also

Ribbon Control

RibbonControl Class

RibbonControl Members

DevExpress.Xpf.Ribbon Namespace