Is there a way to change the 'Contains' icon in a XamDataGrid filtering options?
It looks too much like a checkbox in the indeterminate state. I've searched the forums but really couldn't find anything on how to do this.
Hello Michael,
Thank you for contacting Infragistics Developer Support!
You will want to merge the PrimitivesGeneric_Express.xaml and modify the OperatorContainsImageKey geometry group.
Hi Michael,
My apologies but I'm not sure how to use that xaml and key to get what I want.
Can you give me a little more to go on here? Sorry for not understanding what needs to be done.
Thanks
Mike Lowder
So I've worked some more on this. I loaded version 19.1 and was able to build the solution you sent me.
I saw how the PrimitivesGeneric xaml files worked and was able to incorporate the version 16.2 xaml files into my own code and for the most part got it working.
However, there is one thing in the PrimitivesGeneric_Express.xaml that would build OK but caused an exception when I tried running my solution.
On line 21 of the of the PrimitivesGeneric_express.xaml file for version 16.2 there is this line.
<SolidColorBrush PresentationOptions:Freeze="true" x:Key="{x:Static igWindows:PrimitivesBrushKeys.ResizerBarFillKey}" themes:ResourceWasher.WashGroup="BaseColor" Color="#2E000000"/>
When running my solution I got an exception on the "ResizerBarFillKey" on that line. If I commented out that line it worked fine.
I'm not sure if commenting out that line would break something else.
I tried looking in the help for version 16.2 but couldn't find anything on ResizerBarFillKey.
So my question now is if I comment out that line of code in the xaml file is that going to cause an issue? Or is there another way to make that line of code not cause an error.
Please advise.
Mike
Thank you for the update. I have some follow up questions:
Do you have the PrimitivesGeneric_Brushes.xaml included in your project? Are you using the files I provided or did you grab them from your own install? As some content may have been added over the years that could be missing from an older version.
I used the xaml files that were in the version 16.2 install on my machine. I copied those files into my solution. This is why I thought it was weird that that one line of xaml code wouldn't work.
Since they were part of the 16.2 install I would have supposed that it would have worked.
I do really need to know if there is an issue with commenting that line of code out of that file.
One other thing. Just letting you know that I changed out the OperatorContainsImageKey xaml code to look like this.
<DrawingImage x:Key="{x:Static igWindows:ComparisonOperatorSelector.OperatorContainsImageKey}" ig:Utilities.SnapElementToDevicePixels="True" x:Shared="false"> <DrawingImage.Drawing> <ImageDrawing Rect="0,0,15,15" ImageSource="{StaticResource ContainsIcon}"/> </DrawingImage.Drawing> </DrawingImage>
I used a static resource to a png file so I swapped out the whole GeometryDrawing for an ImageDrawing and it worked great.
Thanks for you help and again please advise about that line of code that is not working.
Thank you for the update. The error is likely cause by a missing reference, do you reference Infragistics.WPF? Do you reference PresentationFramework.Luna?
Also discussing this with my team because the OperatorContainsImageKey is static you can copy that out and put it into its own resource dictionary instead of importing the whole PrimitivesGeneric_Express.
Ah that works much better. I removed those xaml files from my project and just copied out the xaml code and put that in our dictionary and it works great. I only had to reference Infragistics.WPF.
That is a much better solution.
Thank your for all your time. It works great.