Back to Devexpress

SimplifiedModeSettings.Location Attached Property

wpf-devexpress-dot-xpf-dot-ribbon-dot-simplifiedmodesettings.md

latest2.5 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

See GetLocation(DependencyObject) and SetLocation(DependencyObject, Nullable<SimplifiedModeLocation>).

Returns

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

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

SimplifiedModeSettings Class

SimplifiedModeSettings Members

DevExpress.Xpf.Ribbon Namespace