Back to Devexpress

RepositoryItemBreadCrumbEdit.PathRejected Event

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitembreadcrumbedit-91b3dae5.md

latest2.1 KB
Original Source

RepositoryItemBreadCrumbEdit.PathRejected Event

Occurs when a path to which the RepositoryItemBreadCrumbEdit was about to navigate does not pass validation.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event BreadCrumbPathRejectedEventHandler PathRejected
vb
<DXCategory("Events")>
Public Event PathRejected As BreadCrumbPathRejectedEventHandler

Event Data

The PathRejected event's data class is DevExpress.XtraEditors.BreadCrumbPathRejectedEventArgs.

Remarks

Whenever the BreadCrumbEdit.Path property changes, the BreadCrumbEdit checks whether a node with such a path exists. If not, the RepositoryItemBreadCrumbEdit.ValidatePath event occurs. You can handle the ValidatePath event to either create a new node with the target path, or to cancel the navigation. The PathRejected event occurs if this path did not pass validation and was rejected.

See Also

Breadcrumb Edit Control

RepositoryItemBreadCrumbEdit Class

RepositoryItemBreadCrumbEdit Members

DevExpress.XtraEditors.Repository Namespace