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
Team, Can anyone respond to XamDataGrid style difference at the earliest?
Hello Eker,
Thank you for your post.
I have been looking into it and I am not sure that I understand completely your issue and what kind of styles you are using. Would you please provide me with more details about your styles? Are you using some theme or you are using default one? It will be great if you could share an isolated sample application that illustrate the issue, so I can investigate it further for you.
Looking forward to hearing from you.
Comtrol: XamDataGrid
Theme: Office2010Blue
Issue: Look and feel of scrollbar (Horizontal & Vertical), Grid filter header and the dropdown that comes within filter selection got changed after v15.1 upgrade.
We use XamDataGrid across application at many places, styles are applied at global level and in-line as required. But theme is applied at global level only.
Unfortunately I can't able to share any source code or screen shots. What all we need is to rvert back to previous look and feel of XamDataGrid. Please help at the earliest.
Hi Nikolov,
Expecting your support at the earliest.
Thanks,
Eker.
Hello Lakharv,
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.
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 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.
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.
Expecting for your support at the earliest.
I have been investigating your requirement. In order to be able to override the styles that derived from themes in XamDataGrid, you should define the styles for controls, that you want to re-template in the resources of XamDataGrid. What I can suggest is to create two empty styles for ScrollViewer and Scrollbar controls, so you will override the Office2010Blue styles for horizontal and vertical scrollbar. I modified the last sample application to show you how you can achieve the functionality that you are looking for. Please let me know if it does not cover your expectations and feel free to modify it, so you reproduce the described behavior and send it back to me for further investigation.