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
565
CellValuePresenter.HorizontalContentAlignment doesn't work?
posted

This should be an easy one:

I'm trying to get my column to right-align the content.  Either HorizontalContentAlignment isn't the right property, or I'm doing something wrong.

See the following.  The content is still left-justified.  The background color is still lime, however, so I know the properties are getting picked up.

Thanks if you can help.

 

    <igDP:Field Name="somestring">

        <igDP:Field.Settings>

            <igDP:FieldSettings>

                <igDP:FieldSettings.CellValuePresenterStyle>

                    <Style TargetType="{x:Type igDP:CellValuePresenter}">

                        <Setter Property="HorizontalContentAlignment" Value="Right"/>

                        <Setter Property="HorizontalAlignment" Value="Right"/>

                        <Setter Property="Background" Value="Lime"/>

                    </Style>

                </igDP:FieldSettings.CellValuePresenterStyle>

            </igDP:FieldSettings>

        </igDP:Field.Settings>

    </igDP:Field>