Skip to main content

AccordionControl.CompactNavigation Property

Gets or sets whether to display the linked OfficeNavigationBar‘s items within the Accordion’s overflow panel. This is a dependency property.

Namespace: DevExpress.Xpf.Accordion

Assembly: DevExpress.Xpf.Accordion.v23.2.dll

NuGet Package: DevExpress.Wpf.Accordion

Declaration

public bool CompactNavigation { get; set; }

Property Value

Type Description
Boolean

true, to display the OfficeNavigationBar’s items within the Accordion’s overflow panel; otherwise, false. By default, true.

Remarks

To link an OfficeNavigationBar to an AccordionControl, use the OfficeNavigationBar.NavigationClient property. See the following code snippet.

<dxa:AccordionControl x:Name="accordion"
        ViewMode="NavigationPane"
        CompactNavigation="True">
<!---->
<dxnav:OfficeNavigationBar NavigationClient="{Binding ElementName=accordion}" />

If the CompactNavigation property is set to true, the original OfficeNavigationBar linked to the Accordion is hidden, as illustrated in the image below.

CompactNavigation

End-users can change the value of the CompactNavigation property using the Compact Navigation checkbox in the OfficeNavigationBar’s Navigation Options menu. This checkbox is only shown if the OfficeNavigationBar is linked to an AccordionControl.

See Also