In This Article

Item Display

The Breadcrumb control allows the look of the represented data to be customized using various properties.

Customizing the Item Look

The items in the Breadcrumb control use the Breadcrumb.ItemTemplate as their DataTemplate. In addition, the Breadcrumb.ItemContainerStyle can be used to further customize the look of an item.

Typically, these properties are set on the Breadcrumb control for use by all the items displayed. But the associated properties on the BreadcrumbItem control can be used to change the look for its descendants. Therefore, if desired, each item in the trail could be given a custom look.

Setting Images

The image associated with the selected item is displayed on the left side of the Breadcrumb control. This image is obtained from the BreadcrumbItem.ImageSource property.

Tip

The ImageConverter value converter can be used to create an Image element from a BitmapSource, allowing you to use the BreadcrumbItem.ImageSource property to assign the MenuItem.Icon property for use in the context menus.

In addition, Breadcrumb.ImageMinWidth can be used to set the minimum width of the image area. By default, this property is set to 16.0.

Associated Members

The following Breadcrumb members can be used to customize the display of items:

Member Description
ImageMinWidth Property Gets or sets the minimum width of the image displayed on the left side of the Breadcrumb. The default value is 16.0.
ItemContainerStyle Property Gets or sets the Style that is applied to BreadcrumbItem elements generated for items in the trail. The default value is null.
ItemContainerStyleSelector Property Gets or sets custom logic for choosing a Style that can be applied to BreadcrumbItem elements generated. The default value is null.
ItemTemplate Property Gets or sets the DataTemplate used to display each item in the trail. The default value is null.
ItemTemplateSelector Property Gets or sets the custom logic for choosing a template used to display each item in the trail. The default value is null.

The following BreadcrumbItem members can be used to customize the display of child items:

Member Description
ImageSource Property Gets or sets the image that appears in the Breadcrumb when the BreadcrumbItem is selected. The default value is null.
ItemContainerStyle Property Gets or sets the Style that is applied to BreadcrumbItem elements generated for items in the trail. The default value is null.
ItemContainerStyleSelector Property Gets or sets custom logic for choosing a Style that can be applied to BreadcrumbItem elements generated. The default value is null.
ItemTemplate Property Gets or sets the DataTemplate used to display each item in the trail. The default value is null.
ItemTemplateSelector Property Gets or sets the custom logic for choosing a template used to display each item in the trail. The default value is null.