Back to Devexpress

PivotGridControl.CellStyle Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-09325a1d.md

latest1.7 KB
Original Source

PivotGridControl.CellStyle Property

Gets or sets the style applied to data cells displayed within a Pivot Grid.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public Style CellStyle { get; set; }
vb
Public Property CellStyle As Style

Property Value

TypeDescription
Style

A System.Windows.Style object that represents the style applied to data cells.

|

Remarks

See the example below.

xaml
<dxpg:PivotGridControl.CellStyle>
    <Style TargetType="{x:Type dxpg:CellElement}" >
        <Style.Triggers>
            <DataTrigger Binding="{DXBinding 'RowIndex==PivotGrid.FocusedCell.Y or ColumnIndex==PivotGrid.FocusedCell.X'}" Value="True">
                <Setter Property="Background" Value="{Binding Background, Converter={StaticResource colorOverlayConverter}, ConverterParameter=#50505050}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
</dxpg:PivotGridControl.CellStyle>

See Also

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace