Back to Devexpress

AccordionControl.CompactNavigation Property

wpf-devexpress-dot-xpf-dot-accordion-dot-accordioncontrol-258861ef.md

latest2.4 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Accordion

Declaration

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

Property Value

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

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

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

AccordionControl Class

AccordionControl Members

DevExpress.Xpf.Accordion Namespace