Somebody knows how to align the header label to right on XamDataPresenter?
I try this but doesn't work
......
<Style TargetType="{x:Type igDP:LabelPresenter}" x:Key="TopAlignField"> <Setter Property="HorizontalContentAlignment" Value="Right"/> </Style>
.........
<igDP:Field Name="CantidadCompra" Label="Cantidad Compra"> <igDP:Field.Settings> <igDP:FieldSettings LabelPresenterStyle="{StaticResource TopAlignField}" EditorType="{x:Type igEditors:XamNumericEditor}" EditAsType="{x:Type sys:Double}"/> </igDP:Field.Settings></igDP:Field>
Ok I'll take a look.
Thanks for your quick responses.
Hi,
This space is reserved for the SortIndicator. If you want to remove it and use this space, you have to either create a new control template or remove it from the existing one using Default Styles. Please, refer to the following forum thread for a sample project where this has been achieved:
http://community.infragistics.com/forums/p/49106/266932.aspx#
Hope this helps.
Thank you Galina, that work.
Just one details, this control reserve a little space at right side on the header label.
That's normal behavior, I marked it with a blue line in the next screen shot
Hi SporteBNV,
You need to set the LabelTextAlignment property of FieldSettings to "Right".