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?
Hi,
Actually I had reported this issue to our development team and it has already been fixed internally and will be included in a Service Release after it has passed testing. Regarding the second issue I am not actually sure what you mean. Perhaps you could explain in more details what does your template look like and what are the result I can further investigate it. Actually I can’t think of a way that it would only work in design time, perhaps you can isolate it in a simple example so we are sure we are working on the same think.
Looking forward to hearing from you.
Regards Petar.
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…
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