BreadcrumbControl.SelectedItemTemplateSelector Property
Gets or sets an object that chooses a selected task template based on custom logic. This is a dependency property.
Namespace: DevExpress.Xpf.Controls
Assembly: DevExpress.Xpf.Controls.v24.2.dll
NuGet Package: DevExpress.Wpf.Controls
Declaration
Property Value
Type | Description |
---|---|
DataTemplateSelector | A DataTemplateSelector descendant that applies a template based on custom logic. |
Remarks
When the BreadcrumbControl functions in Items EditMode, it displays the selected items as nodes and an empty item.
The SelectedItemTemplate property allows you to specify a template for the Breadcrumb nodes and an empty item.
If you have more than one template that can be used to render breadcrumb nodes, you can implement custom logic to choose the required template. To do this, derive from the DataTemplateSelector class, implement the SelectTemplate method that returns a template which meets the required condition, and assign it to the SelectedItemTemplateSelector property.
If both the SelectedItemTemplate and SelectedItemTemplateSelector are specified, the breadcrumb nodes are rendered using the template returned by the template selector. If the template selector returns null, the template specified by the SelectedItemTemplate property is used.