Hi,
I have been trying to remove the Highlight (Blue color border) that appears on the GroupByArea of the XamDatagrid while we drag a column into it for the first time, but haven't been able to do so!
This does sound like a very simple query but I have been trying to remove this highlight for quite some time now and would really appreciate some guidance.
I am attaching an image to put forward my query more clearly. Please help!
Thank you!
Hello,
Thank you for your post. I have been looking into it and I suggest you add the following SolidColorBrush in your XamDataGrid’s Resources:
<SolidColorBrush Color="Transparent" x:Key="{x:Static igWindows:PrimitivesBrushKeys.DropTargetStrokeKey}" />
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi Stefan,
Thank you for your reply!
But some how this is not working, the blue highlight still persists. I added a fresh copy of the default styles in my project, added this Brush but in vain.
Am I missing something here? Please help!
Thank you,
Nash
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into it and I copy the default Style of the DropIndicator element in the App.xaml file. In its Template there is a Rectangle called "spaceRect", which is the one you can change in order to achieve the functionality you want.
Stefan,
I want to keep the highlight and I know how to change the color, but I want to change the look of the border (remove the curved corners, thickness, etc) but I can't find where it is defined or set on the groupbyarea control. Am I missing something?
Thanks
Hello Nash,
I have been looking into your requirement and the code you have provided and I can say that this is the way to achieve your goal.
Is this the right way:
SolidColorBrush sb = new SolidColorBrush();sb.Color = Colors.Transparent;xamTestGrid.Resources.Add(PrimitivesBrushKeys.DropTargetStrokeKey, sb);
It is working in my app. but would really appreciate it if you could confirm if this is correct..
Thanks and Regards,
One quick question, if the case is that my XamDatagrid is created dynamically, how do I hide this highlight then?