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
1715
Difficulty in styling cells
posted

I have 20 fields and would like to style all cells of one field in a certain way. I was thinking the following XAML would do the trick, but it does nothing.

<igDP:Field Name="Status">
              <igDP:Field.Label>
                <Label Name="LabelStatus">
                  <TextBlock TextWrapping="Wrap">Status</TextBlock>
                </Label>
              </igDP:Field.Label>

              <igDP:Field.Settings>
                <igDP:FieldSettings AllowEdit="False" LabelWidth="80" CellWidth="80">
                  <igDP:FieldSettings.CellPresenterStyle>
                    <Style TargetType="{x:Type igDP:CellPresenter}">
                      <Setter Property="Background" Value="Yellow" />
                      <Setter Property="Foreground" Value="Green" />
                      <Setter Property="FontSize" Value="16" />
                    </Style>
                  </igDP:FieldSettings.CellPresenterStyle>
                </igDP:FieldSettings>
              </igDP:Field.Settings>
            </igDP:Field>

 

Any ideas as to what might be wrong?

 

Thanks!