Hello,
I am using XamDataGrid inside XamDockManager's DockManagerPanel, I've setup it in a way that there are two Tabs available for User.
Both grids which are shown on the image are identical from the code and style perspective.
Issue is that for the tab which will not be shown to the user by default there is always incorrect indentation of every child band (always -5px).
Width of the ExpansionIndicator for all Layouts including Child Band is the same (so it is whole DataRecordPresenter aligned incorrectly on the screenshot below).
Issue affects all XamDataGrids (with different styles and setups) which are on Tabs that are not Selected.
Important note is that Issue appeares if "Infragistics.Themes.ThemeManager.ApplicationTheme" is set to null and does not reproduce if ApplicationTheme is set to one of the Defaults (i.e. RoyalDarkTheme or Office2013Theme).
I am not able to send you any code snippets or example application at the moment, however I would like to ask for advice on where to start researching? Version of the Infragistics is v19.2.20192.90
I believe there is some difference in how Child Bands position calculated for Grids that will be rendered on screen and for those which are not immediately shown?
Thanks,
Andrey
Thank you for your post. It looks like a bug to me but also you are using version 19.2 so possible bug is already been fixed. If you can share your sample with the steps to reproduce the issue i can test it against supported version XamDataGrid V22.2/23.1 and can verify.
Thank you for the reply.
At this moment I actually was able to fix the issue just by setting up the Style for ExpansionIndicator explicitly in my XAML and not by having this style come from Infragistics Theme.
I used <Style TargetType="{x:Type igControls:ExpansionIndicator}" BasedOn="{x:Static themes:PrimitivesGeneric.ExpansionIndicator}"> Style as example which is defined in PrimitivesOffice2013_Express.xaml and it works for the cases when XamDataGrid is on the hidden Tab.
As for the issue itself - as I was saying in the original post the key point (at least for my App) is that Infragistics.Themes.ThemeManager.ApplicationTheme was set to null and in my case this leads to the situation when there is no particular Theme setup to be used and a lot of Infragistics Styles where missing (not added to the Application.Current.Resources.MergedDictionaries) for XamDataGrid.
As for the sample application that you may use as reference to test it on 22.1/23.1 version unfortunately I am not able to easily extract all the Layout so it will be as close as it possible to what I have in my App. On a high level it is just two tabs with XamDataGrids and ApplicationTheme = null
With ApplicationTheme = null the following block of resources (highlighted with red below) was missing including the Template for ExpansionIndicator from the PrimitivesOffice2013_Express.xaml
Thank you for the update. I am glad that you were able to workaround the issue. I tried setting up a sample but not able to reproduce the issue .
if you cant share the sample , is there a way you can download the latest trial version and test it without the workaround, which make it clear if issue is with other supported version as well