Back to Devexpress

PivotGridControl.FieldValueStyle Property

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

latest2.1 KB
Original Source

PivotGridControl.FieldValueStyle Property

Gets the style settings used to paint field values.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

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

Property Value

TypeDescription
Style

A System.Windows.Style object that represents the style applied to field values.

|

Remarks

See the example below.

xaml
<dxpg:PivotGridControl.FieldValueStyle>
    <Style TargetType="{x:Type dxpg:FieldValueElement}">
        <Style.Triggers>
            <DataTrigger Binding="{DXBinding 'IsColumn==false and MinLevel==MaxLevel and MaxLevel==PivotGrid.FocusedCell.Y'}" Value="True">
                <Setter Property="Background" Value="{Binding Background, Converter={StaticResource colorOverlayConverter}, ConverterParameter=#11101010}" />
            </DataTrigger>
            <DataTrigger Binding="{DXBinding 'IsColumn==true and MinIndex==MaxIndex and MaxIndex==PivotGrid.FocusedCell.X'}" Value="True">
                <Setter Property="Background" Value="{Binding Background, Converter={StaticResource colorOverlayConverter}, ConverterParameter=#11101010}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
</dxpg:PivotGridControl.FieldValueStyle>

See Also

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace