Hi ,
I am using Office2010BlueTheme at the application level using the following code.
ThemeManager.ApplicationTheme = new Office2010BlueTheme();
I am using filter row in XamDataGrid. The default style of the filter operand dropdown has oversized icons. Is there a way to override this
using the default style only for this dropdown.
Thanks,
Arun
Hello Arun,
I have been investigating into the behavior you are seeing in which the “Match” and “Does not match” operands are oversized in the Office2010Blue theme, and I cannot seem to reproduce the behavior you are seeing. I have built a sample project against version 18.1.20181.255 of Infragistics for WPF 2018.1, and all of the sizes of the operands are consistent on my end. This sample project is attached.
It is also worth noting that in the sample project, when the Office2010Blue theme is applied, the background of the filter operand selector is blue, whereas in your screenshot, it is white. This leads me to believe that you may have a style on your end that is taking effect, and possibly causing this issue. It may be helpful if you can modify the sample project I am attaching such that it reproduces the behavior you are seeing.
Regarding modification of the icons, each of these icons are a DrawingImage stored in the PrimitivesGeneric_Express ResourceDictionary commonly found at the following directory:
C:\Program Files (x86)\Infragistics\<your version here>\WPF\DefaultStyles\Windows\PrimitivesGeneric_Express.xaml
They are all used in a Style for ComparisonOperatorSelector in the same file, as this is the style for the operand drop-down in the grid. If you wish to modify the icons, I would recommend modification of these DrawingImages or the ComparisonOperatorSelector style, although I feel that may not be the root cause in this case, as mentioned above.
Please let me know if you have any other questions or concerns on this matter.
XDGOperandDropDownIssueTest.zip
Hi Andrew,
Thank you for a quick response.
I think the issue is with the infragistics version we are using. I am able to reproduce the issue in the project you sent with version 16.2 dll references. Could you see if any patch is available to fix this issue?
I have checked this behavior with the final service release of 16.2, which was version 16.2.20162.2237, and it appears that this issue still existed specifically with the Office2010Blue theme. As such, there is no patch for 16.2 that will resolve this behavior.
I tested against version 17.1 and when testing against the final service release for that, 17.1.20171.2200, the behavior was resolved, and so this tells me that this issue was resolved later in the development cycle for 17.1 and mid 17.2, which would have been after 16.2 had already expired. If possible, I would recommend upgrading to these versions or later. Otherwise, you will need to make modifications to the DrawingImage elements and the ComparisonOperatorSelector style mentioned above.