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>
Hello,
Thank you for your feedback. If you need any further assistance on this matter in future, do not hesitate to contact us.
I'll have to get back to you in a few days. My primary dev machine crashed yesterday. I will provide an update when I'm up and running again.
I am just checking if you require any further assistance on the matter.
I have been looking into your post and I can suggest defining a style for the corresponding editor’s type in order to change the ‘HorizontalContentAlignment’ property of the field like :
<Style TargetType="igEditors:XamCurrencyEditor">
<Setter Property="HorizontalContentAlignment" Value="Left"/>
<Style TargetType="igEditors:XamNumericEditor">
If you need any further assistance on this matter, feel free to ask.
With the service pack, your example works.
But it seems the behavior for decimal fields isn't the same as string fields. I want to left-justify my decimal field in a different column.
In your example program, I changed the BasePrice's type to decimal, and added a field for it to the grid. Setting HorizontalContentAlignment doesn't seem to affect the decimal field. (Altered files are attached for your reference.)
Any insight as to what's going on here?