Back to Devexpress

BreadcrumbControl.EmptyItemText Property

wpf-devexpress-dot-xpf-dot-controls-dot-breadcrumbcontrol-94379382.md

latest2.7 KB
Original Source

BreadcrumbControl.EmptyItemText Property

Gets or sets the text displayed within the empty item. This is a dependency property.

Namespace : DevExpress.Xpf.Controls

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

NuGet Package : DevExpress.Wpf.Controls

Declaration

csharp
public string EmptyItemText { get; set; }
vb
Public Property EmptyItemText As String

Property Value

TypeDescription
String

The empty item text.

|

Remarks

When the Breadcrumb control has no selected items (nodes), it displays the empty item.

Use the EmptyItemText property to change the text displayed within the empty item.

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EmptyItemText 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-create-breadcrumb-control/CS/PathEditorExample/MainWindow.xaml#L15

xml
<dxco:BreadcrumbControl ItemsSource="{Binding Items}" VerticalAlignment="Top" SelectedItemPath="{Binding Value, Mode=TwoWay}"
                        DisplayMember="Name" ChildMember="Children" EmptyItemText="Selected root item"/>

See Also

BreadcrumbControl Class

BreadcrumbControl Members

DevExpress.Xpf.Controls Namespace