windowsforms-devexpress-dot-xtraeditors-dot-breadcrumbnode-d9d0d991.md
Gets or sets whether this BreadCrumbNode can raise the RepositoryItemBreadCrumbEdit.QueryChildNodes event.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(false)]
[DXCategory("Behavior")]
public bool PopulateOnDemand { get; set; }
<DXCategory("Behavior")>
<DefaultValue(False)>
Public Property PopulateOnDemand As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if this BreadCrumbNode can raise the RepositoryItemBreadCrumbEdit.QueryChildNodes event; otherwise, false.
|
If an end-user clicks the drop-down button of a node whose PopulateOnDemand property equals true , the RepositoryItemBreadCrumbEdit.QueryChildNodes event will occur. This event allows you to modify the BreadCrumbNode.ChildNodes collection of a node that caused the event. You can handle this event to dynamically populate your BreadCrumbNodes. See the Breadcrumb Edit Control topic and How To: Create a File Explorer example to learn more.
The following code snippets (auto-collected from DevExpress Examples) contain references to the PopulateOnDemand 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#L41
private void breadCrumbEdit1_Properties_NewNodeAdding(object sender, DevExpress.XtraEditors.BreadCrumbNewNodeAddingEventArgs e) {
e.Node.PopulateOnDemand = true;
}
winforms-how-to-use-zoom-transition-effect/CS/dxSample/Form1.cs#L153
private void repositoryItemBreadCrumbEdit1_NewNodeAdding(object sender, BreadCrumbNewNodeAddingEventArgs e) {
e.Node.PopulateOnDemand = true;
}
winforms-file-explorer-breadcrumb-folder-nav/VB/Form1.vb#L43
Private Sub breadCrumbEdit1_Properties_NewNodeAdding(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.BreadCrumbNewNodeAddingEventArgs) Handles breadCrumbEdit1.Properties.NewNodeAdding
e.Node.PopulateOnDemand = True
End Sub
winforms-how-to-use-zoom-transition-effect/VB/dxSample/Form1.vb#L161
Private Sub repositoryItemBreadCrumbEdit1_NewNodeAdding(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.BreadCrumbNewNodeAddingEventArgs)
e.Node.PopulateOnDemand = True
End Sub
See Also