Back to Devexpress

PivotGridControl.BrushChanged Event

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-b9141bbf.md

latest9.3 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public event PivotBrushChangedEventHandler BrushChanged
vb
Public Event BrushChanged As PivotBrushChangedEventHandler

Event Data

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

PropertyDescription
BrushTypeGets which brush has been changed. For internal use.
HandledGets 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.
OriginalSourceGets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. Inherited from RoutedEventArgs.
RoutedEventGets or sets the RoutedEvent associated with this RoutedEventArgs instance. Inherited from RoutedEventArgs.
SourceGets or sets a reference to the object that raised the event. Inherited from RoutedEventArgs.

The event data class exposes the following methods:

MethodDescription
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:

PropertyDescription
PivotGridControl.CellBackgroundGets or sets the brush used to paint the background of data cells. This is a dependency property.
PivotGridControl.CellForegroundGets or sets the brush used to paint the foreground of data cells. This is a dependency property.
PivotGridControl.CellSelectedBackgroundGets or sets the brush used to paint the background of the selected data cell. This is a dependency property.
PivotGridControl.CellSelectedForegroundGets or sets the brush used to paint the foreground of the selected data cell. This is a dependency property.
PivotGridControl.CellTotalBackgroundGets or sets the brush used to paint the background of total and grand total cells. This is a dependency property.
PivotGridControl.CellTotalForegroundGets or sets the brush used to paint the foreground of total and grand total cells. This is a dependency property.
PivotGridControl.CellTotalSelectedBackgroundGets or sets the brush used to paint the background of the selected total or grand total cell. This is a dependency property.
PivotGridControl.CellTotalSelectedForegroundGets or sets the brush used to paint the foreground of the selected total or grand total cell. This is a dependency property.
PivotGridControl.ValueBackgroundGets or sets the brush used to paint the background of field value cells. This is a dependency property.
PivotGridControl.ValueForegroundGets or sets the brush used to paint the foreground of field value cells. This is a dependency property.
PivotGridControl.ValueSelectedBackgroundGets or sets the brush used to paint the background of the selected field value cell. This is a dependency property.
PivotGridControl.ValueSelectedForegroundGets or sets the brush used to paint the foreground of the selected field value cell. This is a dependency property.
PivotGridControl.ValueTotalBackgroundGets or sets the brush used to paint the background of total and grand total headers. This is a dependency property.
PivotGridControl.ValueTotalForegroundGets or sets the brush used to paint the foreground of total and grand total headers. This is a dependency property.
PivotGridControl.ValueTotalSelectedBackgroundGets or sets the brush used to paint the background of the selected total or grand total header. This is a dependency property.
PivotGridControl.ValueTotalSelectedForegroundGets 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

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace