In the upcoming release of the WPF PivotGrid control we have added a new event that will allow you to customize the appearance of field value cells. From this event you can specify the brushes used to paint the background and foreground of the processed field value cell.
In past versions there was a similar event that when combined with this new event gives many new ways to conditionally customize the visual presentation of WPF Pivot Grid elements.
You can see in the example How to customize the appearance of cells that with the existing event, CustomCellAppearance, how you can use the PivotCustomCellAppearanceEventArgs argument witch will give you the PivotCellBaseEventArgs class to modify properties related to the Cell. Now with the new CustomValueAppearance event you will get the PivotCustomValueAppearanceEventArgs argument witch will give you the PivotFieldValueEventArgs class to customize column and row headers.
You can see from the table below that each event gives you different sets of properties that when used together can be used to create rich data presentations for your users like the image blow the table.
|
CustomCellAppearance |
|
CustomValueAppearance |
|
PivotCustomCellAppearanceEventArgs |
|
PivotCustomValueAppearanceEventArgs |
- Foreground
- Background
- IsExporting
- ColumnCustomTotal
- ColumnField
- ColumnFieldIndex
- ColumnIndex
- ColumnValueType
- Data
- DataField
- DisplayText
- Focused
- Item
- RowCustomTotal
- RowField
- RowFieldIndex
- RowIndex
- RowValueType
- Selected
- SummaryType
- SummaryValue
- Value
|
|
- Foreground
- Background
- IsExporting
- CustomTotal
- Data
- DataField
- FieldIndex
- IsCollapsed
- IsColumn
- IsOthersValue
- Item
- MaxIndex
- MinIndex
- Value
- ValueType
- Field
| |

We hope you can use this new functionality to bring better and richer solutions to your users.