Skip to main content
A newer version of this page is available. .

IBreadcrumbTextProvider Interface

An interface of a text provider for the HierarchicalDataAdapter.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v20.1.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Charts, DevExpress.Wpf.Charts

Declaration

public interface IBreadcrumbTextProvider

The following members return IBreadcrumbTextProvider objects:

Remarks

The HierarchicalDataAdapterBase.BreadcrumbTextProvider property stores an object of a class that implements this interface. The adapter uses the property to provide text for breadcrumb items that represent various drill down detail levels.

Example

Tip

The complete example is available on GitHub.

This example demonstrates how to enable the Chart’s Drill Mode that allows end users to navigate between different detail levels:

 public interface INameable {
    string Name { get; }
}

public sealed class DevAVBranch: INameable {
    public string Name { get; set; }
    public List<DevAVProductCategory> Categories { get; set; }
    public double TotalIncome { get => Categories.Sum(c => c.TotalIncome); }
}


public sealed class DevAVProductCategory: INameable {
    public string Name { get; set; }
    public List<DevAVProduct> Products { get; set; }
    public double TotalIncome { get => Products.Sum(p => p.TotalIncome); }
}


public sealed class DevAVProduct: INameable {
    public string Name { get; set; }
    public List<DevAVMonthlyIncome> Sales { get; set; }
    public double TotalIncome { get => Sales.Sum(s => s.Income); }
}


public class DevAVMonthlyIncome {
    public DateTime Month { get; set; }
    public double Income { get; set; }
}

The table below lists classes and properties the code above includes:

Symbol

Description

Diagram.SeriesItemsSource

Gets or sets the collection of objects used to generate series.

HierarchicalDataAdapter

The data adapter that uses data objects with aggregation and composition relationships as data sources for different detail levels when the Chart control is in the Drill Mode.

HierarchicalDataAdapterBase.DataSource

Gets or set the collection of data source objects for the Chart in the Drill Mode.

HierarchicalDataAdapter.ChildrenSelector

Gets or sets an object that returns a child object collection from a data object on whose representation the end user clicked.

IChildrenSelector

An interface of a children selector for the HierarchicalDataAdapter.

HierarchicalDataAdapterBase.BreadcrumbTextProvider

Gets or sets the object that provides text for breadcrumb items when the Chart is in the Drill Mode.

IBreadcrumbTextProvider

An interface of a text provider for the HierarchicalDataAdapter.

Diagram.SeriesItemTemplateSelector

Gets or sets the custom logic for selecting a data template that converts a model object to a series.

Diagram.DrillDownStateChanged

Occurs when end users navigate by detail levels when the Chart is is the Drill Mode.

See Also