I need to change style for the XamlGrid row. I used following template:
<Style TargetType="{x:Type igDP:DataRecordCellArea}"> <Setter Property="BorderBrush" Value="Navy" /> <Setter Property="CornerRadius" Value="10"/> <Setter Property="Margin" Value="1"/> <Setter Property="BorderThickness" Value="2"/> </Style>
But the CornerRadius for "DataRecordCellArea" effective only when the mouse
is over. How to set CornerRadius for non selected/non mouse over rows?
Hello,
I have been investigating your issue and there indeed doesn’t seem to be a built-in way for doing this. However I have found a way for to achieve your goal by retemplating the DataRecordCellArea using the original templates found in the DefaultStyles folder. I have created a sample project for you showing how to use it (Grid_corners.zip).
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Well, I can see the rounded corners in your sample but your template messes up with my existing templates. Do you have more straightforward solution?And I come across another issue related to the datarow border. As soon as used composite template for the single cell, let’s say stackpanel and with several textblocks I can see the border’s margins at design time but lose them at runtime, or if I do “groupby” any idea? I’m working on a prototype for the large enterprise product and shortly have to report my manager if xamGrid is appropriate for this porpose…