I have define a style used in every instance of xamDataGrid in the application:
<Style x:Key="XamDataGridDefault" TargetType="igWpf:XamDataGrid"> <Setter Property="Theme" Value="Office2010Blue" /> </Style>
I have also added a reference to this theme in App.xaml like this:
<ResourceDictionary Source="/Themes/Office2010Blue/Office2010Blue.xamDataPresenter.xaml"/>
Problem is that on a standard computer the grid headings disappears after a while using this theme, and may appear again later. This never happen when I use the Aero theme. The application is installed on standard computers in our company using Click Once deployment.
I never see this on my development computer, may be because it has 8 kernals, Infragistics ultimate or a different graphics card/driver.
I suspect there might be an error in the Office2010Blue theme.
HI,
Are you using an older version of our WPF Product? If you are, then try installing the latest service release for that version. If this does not resolve your issue. Then please let me know what version and build of the product you are using.
No, I am using version 2013.2. I did the same test on the 2012.2 version. Experienced exactly the same problem in that version
Hello,
In addition to the details that I asked before, please also provide a screen shot. What are you using for the headers, are they elements or just text?
Also if you snoop the elements is the foreground the same as the background which would make it unreadable? If you find that the foreground and background are the same, traversing up the tree to see where the Foreground is inherited from and looking at triggers may help as well.
Let me know if you have any questions with this matter.
I have investigated this issue some more. Now I have also been able to force this behavior on my development computer. Only Aero and Generic theme seems to work without deficiencies. Other themes tested (IGTheme, Metro, Office2K7Silver) seems to share the same issue as Office2010Blue.
I have not had time yet to snoop my application. It will also take some time to prepare a stand alone sample. Guess I will have to include content pane and tab switching.
But may be you can give me a hint about how I can overcome this issue by changing my implementation.
Sceen shots are added as an attechment. Here you can also se some of my implementation
It's hard to say exactly what is happening based on the screenshot but it's strange that the entire area is disappearing in both the root and child records. One thing you could try is setting the FieldSettings->AllowLabelVirtualization to false but it looks like the entire header and not just the LabelPresenters are not showing so I doubt this will resolve the issue. I suspect you'll need to run Snoop and inspect the various header elements. E.g. check the IsVisible state of the LabelPresenters (assuming they're there), the HeaderPresenter, the HeaderLabelArea, the PART_HeaderContentSite of the derived RecordPresenter that would be hosting the header, etc. It would also help to know if you have custom styles/templates for other grid elements and what they look like. From the screenshot it would seem that you have UseNestedPanels on and must have at least some custom record templates (e.g. for the ExpandableFieldRecordPresenter).
I have now Snooped my application to see what is different when heading is there and not. Some more screen shots are included in my word document from my snoop session. I experienced that the heading is located in the adorner layer. The adorner layer is without content when the header is missing.
I have also in the attachment included xaml file for the actual user control and a xaml file with some common styles.
Thank you for the additional details, we were able to reproduce this issue at design time using the following markup:
<Window x:Class="Wpf13_2.Window2"
xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation "
xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml "
xmlns:igWpf="http://schemas.infragistics.com/xaml/wpf"
Title="Window2" Height="300" Width="300">
<Grid>
<igWpf:XamTabControl>
<igWpf:TabItemEx Header="ABC">
<igWpf:XamDataGrid Theme="Office2010Blue" BindToSampleData="True">
<igWpf:XamDataGrid.ViewSettings>
<igWpf:GridViewSettings UseNestedPanels="True" />
</igWpf:XamDataGrid.ViewSettings>
</igWpf:XamDataGrid>
</igWpf:TabItemEx>
<igWpf:TabItemEx Header="123" />
</igWpf:XamTabControl>
</Grid>
</Window>
We have logged this as development issue 160205 and internally a fix has been made.
Fantastic, thanks.
Dierk,
The headers disappearing is happening only when VerticalAlignment is set to Top in the Border that contains the Grid with name "PART_ContentSiteGrid". If you remove this setting the headers will not disappear.
This got pushed off the first page so I wanted to make sure someone was looking into this?
Hi, I've encountered a similar issue using the latest 13.2 service release. I've attached a sample application that replicates the problem.
Basically, you need to vertically resize the window so the XamDataGrid does not appear. Then resize the window horizontally one direction or the other. Finally, resize the window vertically again so that the XamDataGrid is visible. You should see that the headers are no longer visible. If you resize the window horizontally again, you should see the headers pop back in. In all cases, be sure NOT to use the corner/diagonal resize. Only use the vertical and horizontal resize.
We have a custom template for the grid, and I was unable to replicate the problem in the sample app until I added in this custom template. This is located at the top of MainWindow.xaml. So if you could point me to where the issue is in our template that could cause this, that would be great.
Development issue 160205 has been fixed and the fix was included in the service release that was released this week. You will be able to download this from the My Keys and Downloads page.