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

PivotGridControl.BrushChanged Event

Occurs after a brush used to paint pivot grid cells or field values has been changed.

Namespace: DevExpress.Xpf.PivotGrid

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

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

Declaration

public event PivotBrushChangedEventHandler BrushChanged

Event Data

The BrushChanged event's data class is PivotBrushChangedEventArgs. The following properties provide information specific to this event:

Property Description
BrushType Gets which brush has been changed. For internal use.
Handled Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. Inherited from RoutedEventArgs.
OriginalSource Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. Inherited from RoutedEventArgs.
RoutedEvent Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. Inherited from RoutedEventArgs.
Source Gets or sets a reference to the object that raised the event. Inherited from RoutedEventArgs.

The event data class exposes the following methods:

Method Description
InvokeEventHandler(Delegate, Object) When overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation. Inherited from RoutedEventArgs.
OnSetSource(Object) When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes. Inherited from RoutedEventArgs.

Remarks

The BrushChanged event is fired after one of the following properties has been changed:

Property Description
PivotGridControl.CellBackground Gets or sets the brush used to paint the background of data cells. This is a dependency property.
PivotGridControl.CellForeground Gets or sets the brush used to paint the foreground of data cells. This is a dependency property.
PivotGridControl.CellSelectedBackground Gets or sets the brush used to paint the background of the selected data cell. This is a dependency property.
PivotGridControl.CellSelectedForeground Gets or sets the brush used to paint the foreground of the selected data cell. This is a dependency property.
PivotGridControl.CellTotalBackground Gets or sets the brush used to paint the background of total and grand total cells. This is a dependency property.
PivotGridControl.CellTotalForeground Gets or sets the brush used to paint the foreground of total and grand total cells. This is a dependency property.
PivotGridControl.CellTotalSelectedBackground Gets or sets the brush used to paint the background of the selected total or grand total cell. This is a dependency property.
PivotGridControl.CellTotalSelectedForeground Gets or sets the brush used to paint the foreground of the selected total or grand total cell. This is a dependency property.
PivotGridControl.ValueBackground Gets or sets the brush used to paint the background of field value cells. This is a dependency property.
PivotGridControl.ValueForeground Gets or sets the brush used to paint the foreground of field value cells. This is a dependency property.
PivotGridControl.ValueSelectedBackground Gets or sets the brush used to paint the background of the selected field value cell. This is a dependency property.
PivotGridControl.ValueSelectedForeground Gets or sets the brush used to paint the foreground of the selected field value cell. This is a dependency property.
PivotGridControl.ValueTotalBackground Gets or sets the brush used to paint the background of total and grand total headers. This is a dependency property.
PivotGridControl.ValueTotalForeground Gets or sets the brush used to paint the foreground of total and grand total headers. This is a dependency property.
PivotGridControl.ValueTotalSelectedBackground Gets or sets the brush used to paint the background of the selected total or grand total header. This is a dependency property.
PivotGridControl.ValueTotalSelectedForeground Gets or sets the brush used to paint the foreground of the selected total or grand total header. This is a dependency property.

Use the event parameter’s PivotBrushChangedEventArgs.BrushType property, to determine whether a cell or a field value brush has been changed.

See Also