We recently upgraded to 15.1 version. There were notable style difference which we have to fix ASAP.
XamDataGrid (We have CustomXamDataGrid) - Vertical & Horizontal Scrollbar became dark faded blue in color, Filter header dropdown scrollbar color got changed.3
Hi Nikolov,
Expecting for your support at the earliest.
Thanks,
Eker.
Thanks for the solution. This is what excatly we needed. But it is good if we have only one grid. In our application there are 30+ screens which contains XamDataGrid. We need to handle this at global level not in individual xaml.cs file. FYI..we are using CustomXamDatagrid (Inherited from XamDataGrid). I have tried having the below code in CustomXamDatagrid.cs as well, but that doesn't work as expected. We defined global resource for CustomXamDatagrid as well wherein we defined templates.
can you help us on handling the above solution at application global level? Waiting for your earliest responses.
Hello Lakharv,
Thank you for your feedback.
I have been looking into your requirement. That I can suggest in order to be able to achieve the behavior that you want is to create style for ScrollViewer control in the Resources of XamDataGrid. You can use EventSetter in order to be able to handle Loaded event of ScrollViewer. In the event handler you can use our Utilities class and get the Grid that is parent of vertical and horizontal Scrollbars. You can access the Scrollbar directly by using Children property of Grid control and set its Style property to null, so you will override the style that was inherited from Office2010Blue theme. I modified the last sample application to show you how you can implement this approach.
Please let me know if you require any further assistance on the matter.
Hi Nikilov,
Thanks a lot for your response. I understand that Horizontal and Vertical scrollbars styles are correct behaviour now, but we want to revert back to the original styles of it. The application is in production for years and production users are not ready to accept this style change within XamDataGrid. Can you help on reverting back to Horizontal and Vertical scrollbars styles within XamDataGrid?
Thank you for your post.
I have been investigating your issue. About Horizontal and Vertical scrollbars it seems that it was an issue that was fixed in higher version and the current behavior is correct. About XamDataGrid filters drop down if you want to be able to achieve the default behavior while using theme Office2010Blue, that I can suggest is just to create style for ComboBox control without any Setters and style for XamComboEditor and set its ComboBoxStyle property to the ComboBox style, so you will override the style for XamComboEditor that derives from Ofice2010Blue theme with default style. I created short sample application based on your scenario to show you how you can implement this approach and achieve the functionality that you are looking for.
Please let me know of you need any further assistance on the matter.