Skip to main content

NavigationPaneView.MaxPopupWidth Property

Gets or sets the maximum width of the pop-up pane for the current NavigationPaneView.

Namespace: DevExpress.Xpf.NavBar

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

NuGet Package: DevExpress.Wpf.NavBar

Declaration

public double MaxPopupWidth { get; set; }

Property Value

Type Description
Double

A Double value that is the maximum width of the pop-up pane for the current NavigationPaneView.

Remarks

A NavigationPaneView can be collapsed\expanded at runtime. When an end-user clicks a NavBarGroup within a collapsed NavigationPaneView, a pop-up pane that displays all the group’s items is shown. An end-user can resize this pop-up by dragging its size grip. By default, the maximum pop-up width equals half of the root visual element width. Use the MaxPopupWidth property to change this relation or set a fixed maximum pop-up width.

The following XAML mark-up shows how to set a pop-up pane twice as wide as the root window.

<dxn:NavigationPaneView.MaxPopupWidth>
    <Binding Path="ActualWidth" RelativeSource="{RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type Window}}">
        <Binding.ConverterParameter>
            <System:Double>0.5</System:Double>
        </Binding.ConverterParameter>
        <Binding.Converter>
            <dxn:DoubleDivisionConverter/>
        </Binding.Converter>
    </Binding>
</dxn:NavigationPaneView.MaxPopupWidth>

See the Views topic to learn more.

See Also