windowsforms-devexpress-dot-xtraeditors-dot-breadcrumbedit.md
Gets or sets the current nodes path within this BreadCrumbEdit, starting from a root BreadCrumbNode to the last node visible.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue("")]
[DXCategory("Behavior")]
public string Path { get; set; }
<DXCategory("Behavior")>
<DefaultValue("")>
Public Property Path As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A String value that is the textual representation of the current BreadCrumbEdit nodes path.
|
The Path property returns the string value that specifies the full path within this BreadCrumbEdit that needs to be traveled starting from the first root node to get to the last currently selected node. Nodes, whose BreadCrumbNode.Persistent property equals true , are not included in the BreadCrumbEdit path.
You can use the Path property to manually specify the editor’s path with new, yet undefined nodes. In this case, handle the RepositoryItemBreadCrumbEdit.ValidatePath, RepositoryItemBreadCrumbEdit.NewNodeAdding and RepositoryItemBreadCrumbEdit.QueryChildNodes events to create and dynamically populate these nodes. See the Breadcrumb Edit Control topic for an example.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Path 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.
winforms-file-explorer-breadcrumb-folder-nav/CS/FileNavigator/Form1.cs#L34
void Initialize() {
breadCrumbEdit1.Path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
foreach (DriveInfo driveInfo in GetFixedDrives()) {
winforms-file-explorer-breadcrumb-folder-nav/VB/Form1.vb#L36
Private Sub Initialize()
breadCrumbEdit1.Path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
For Each driveInfo As DriveInfo In GetFixedDrives()
See Also