Back to Devexpress

BarItem.MergeOrder Property

wpf-devexpress-dot-xpf-dot-bars-dot-baritem-bd94b6a5.md

latest3.0 KB
Original Source

BarItem.MergeOrder Property

Gets or sets the position index for all links of the current BarItem in merged bars.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public int MergeOrder { get; set; }
vb
Public Property MergeOrder As Integer

Property Value

TypeDescription
Int32

A non-negative integer value that specifies the position index for all links of the current BarItem in merged bars.

|

Remarks

The MergeOrder property specifies the visual position in merged bars for all links of the current BarItem. This setting can be overridden for particular item links with the BarItemLinkBase.MergeOrder property. See BarItemLinkBase.MergeOrder for details.

The MergeOrder property can accept an integer value greater than or equal to zero.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MergeOrder property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-docklayoutmanager-merge-bars-in-controls-that-support-automatic-merging/CS/WpfApplication1/MainWindow.xaml#L14

xml
<dxb:MainMenuControl.Items>
    <dxb:BarButtonItem Content="MDI" ItemClick="biMDI_ItemClick" MergeOrder="3"/>
    <dxb:BarButtonItem Content="Tabbed" ItemClick="biTabbed_ItemClick" MergeOrder="4"/>

See Also

BarItem.MergeType

MergeOrder

BarItemLinkBase.MergeType

Merge Bars and Ribbons in MDI Mode

BarItem Class

BarItem Members

DevExpress.Xpf.Bars Namespace