Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
CellValuePresenter Background binding

Hi All,

Can someone please help me. I need to change my Cell Background color, The user can select a color with a color picker that gets stored in configuration.

public SolidColorBrush SolidColorBrushValue
get { return MatrixView.SolidColorBrushValue; }
if (MatrixView.SolidColorBrushValue!= value)
MatrixView.SolidColorBrushValue= value;

<Style x:Key="CellLockedStyle" TargetType="{x:Type igWPF:CellValuePresenter}">
<Setter Property="Background" Value="{Binding SolidColorBrushValue}"></Setter>
<Setter Property="IsEnabled" Value="True"></Setter>
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />

The color does not change when the property is triggered.

Thanks in advance,