Skip to main content

SimplifiedModeSettings.Location Attached Property

Gets or sets a value that specifies the ribbon item location. You can specify the location of the BarItem, BarItemLink, RibbonPageGroup items, and their descendants. This is an attached property.

Namespace: DevExpress.Xpf.Ribbon

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

NuGet Package: DevExpress.Wpf.Core

Declaration

Returns

Type Description
Nullable<SimplifiedModeLocation>

A System.Nullable{DevExpress.Xpf.Ribbon.SimplifiedModeLocation} enumeration value.

Remarks

The following code snippet displays the Open ribbon item only in the Simplified mode:

<dx:ThemedWindow x:Class="SimplifiedRibbon.MainWindow"
 ...
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon">
    <dxr:RibbonControl RibbonStyle="Office2019">
        <dxr:RibbonDefaultPageCategory>
            <dxr:RibbonPage Caption="Home">
                <dxr:RibbonPageGroup Caption="File">
                    <dxb:BarButtonItem x:Name="biOpen" Content="Open"
                    dxr:SimplifiedModeSettings.Location="Simplified"/>
                </dxr:RibbonPageGroup>
            </dxr:RibbonPage>
        </dxr:RibbonDefaultPageCategory>
    </dxr:RibbonControl>
</dx:ThemedWindow>
See Also