Back to Devexpress

BreadCrumbNode.PopulateOnDemand Property

windowsforms-devexpress-dot-xtraeditors-dot-breadcrumbnode-d9d0d991.md

latest5.1 KB
Original Source

BreadCrumbNode.PopulateOnDemand Property

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

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Behavior")]
public bool PopulateOnDemand { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(False)>
Public Property PopulateOnDemand As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if this BreadCrumbNode can raise the RepositoryItemBreadCrumbEdit.QueryChildNodes event; otherwise, false.

|

Remarks

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

csharp
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

csharp
private void repositoryItemBreadCrumbEdit1_NewNodeAdding(object sender, BreadCrumbNewNodeAddingEventArgs e) {
    e.Node.PopulateOnDemand = true;
}

winforms-file-explorer-breadcrumb-folder-nav/VB/Form1.vb#L43

vb
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

vb
Private Sub repositoryItemBreadCrumbEdit1_NewNodeAdding(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.BreadCrumbNewNodeAddingEventArgs)
    e.Node.PopulateOnDemand = True
End Sub

See Also

QueryChildNodes

Breadcrumb Edit Control

How To: Create a File Explorer

BreadCrumbNode Class

BreadCrumbNode Members

DevExpress.XtraEditors Namespace