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
Hello Nash,
Could please verify that you put the Brush in your XamDataGrid's Resources, not in the Window's or App's, because if it is not in the control's Resources it won't apply.
This is what I am doing:
1. Add fresh copies of DataPresenterGeneric_Brushes.xaml and DataPresenterGeneric_Express.xaml into my project.
2. Add the Brush you suggested in DataPresenterGeneric_Brushes.xaml
3. Build and run my application.
And still the highlight remains! :(
Is this the right way or am I missing something here?
And I am working with this namespace:
xmlns:igWindows="clr-namespace:Infragistics.Windows.Controls;assembly=Infragistics3.Wpf.v10.1"
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
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?