Skip to main content
Tag

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotGridField.HeaderImage Property

Gets or sets an image displayed within the Pivot Grid’s field header. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public ImageSource HeaderImage { get; set; }

#Property Value

Type Description
ImageSource

A System.Windows.Media.ImageSource object specifying the image displayed within the Pivot Grid’s field header.

#Remarks

The following example shows how to set the product.ico icon to the Product Name field. This icon is located in the image folder of the current project.

using System.Windows.Media.Imaging;

public MainWindow() {
    // ...
    BitmapImage logo = new BitmapImage();
    logo.BeginInit();
    logo.UriSource = new Uri("pack://application:,,,/image/product.ico");
    logo.EndInit();

    fieldProduct.HeaderImage = logo;
}
See Also