Why in Version 10.2 this template doesn'twork anymore?
<Style TargetType="{x:Type igDP:CellValuePresenter}"> <Setter Property="HorizontalContentAlignment" Value="Center" /></Style>
It works in version 9.2.
Also setting a style in code behind doesn't work anymore.
Thanks
VALERIO
Ok, I understood, thanks a lot
Hello,
Since the CellValuePresenter does not actually visualize the cell value, but rather contains the XamEditor that does, it is decided that this should be fixed so that only the XamEdtiros can manipulate this behavior in order to prevent any conflicts. In the forum thread I had forwarder there is a xaml snippet containing a style which you can just add to your XamDataGrid and which does not require any code behind.
Please let me know if you require any more clarifications on this matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Hello Petar, I still don't unserstand why this code shouldn't work:
<igDP:XamDataGrid.Resources> <Style TargetType="{x:Type igDP:CellValuePresenter}" > <Setter Property="HorizontalContentAlignment" Value="Center" />
</Style> </igDP:XamDataGrid.Resources>
can you please provide a little sample application with xaml style and code behind as well?
Thanks for the quick replay
Hello Valerio,
This is due to the changes and improvements implemented in the new releases. Here is forum thread that discusses how to center the XamDataGrid’s Cells’ content: http://forums.infragistics.com/forums/t/49175.aspx
Please let me know if you require any further assistance on the matter.