Skip to main content
A newer version of this page is available. .

BreadcrumbControl Class

A breadcrumb control.

Namespace: DevExpress.Xpf.Controls

Assembly: DevExpress.Xpf.Controls.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Controls, DevExpress.Wpf.Navigation

Declaration

public class BreadcrumbControl :
    Control,
    IBreadcrumbDataAdapter

Remarks

The Breadcrumb control emulates a navigation bar, similar to the one displayed in Microsoft Explorer starting from Windows 7.

<Window ...
        xmlns:dxco="http://schemas.devexpress.com/winfx/2008/xaml/controls">
    <Grid>
        <dxco:BreadcrumbControl 
            ItemsSource="{Binding Documents}" 
            KeyMember="Id"
            ParentMember="ParentId" 
            DisplayMember="Title" />
    </Grid>
</Window>

Edit Modes

The Breadcrumb control can operate in two edit modes:

  • Path mode. In this mode, end-users type a path in the edit box. The Breadcrumb control displays a drop-down list of suggestions as the user types.

  • Items mode. In this mode, end-users select a path by selecting the nodes from the drop-down lists.

The Breadcrumb control switches dynamically between these modes at runtime depending on end-user actions (see the animation below).

Use the EditMode property to explicitly set in which mode the control should operate at the moment.

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

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.

See Also