PivotGridField.TreeViewHeaderImage Property
In This Article
Gets or sets an image displayed within the field header in the Field List.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll
NuGet Package: DevExpress.Wpf.PivotGrid
#Declaration
public ImageSource TreeViewHeaderImage { get; set; }
#Property Value
Type | Description |
---|---|
Image |
A Image |
#Remarks
The following example shows how to set the person.ico icon to the Sales Person field. The 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/person.ico");
logo.EndInit();
fieldSalesPerson.DisplayFolder = "Sales Person"
fieldSalesPerson.HeaderImage = logo;
}
See Also