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
Space remain reserved. Headings may disappear when we navigate to another ContentPane (XamDocManager) or another TabItem in a TabControl and return. Sometimes headings are still there when we return and sometimes they are not. Headings can appear again later when we switch back and forth several times.
I work in a very large company with thousands of PC's covering a broad range of models and configurations. One of the computers where I have observed this problem is a HP Compaq 8200 Elite with Intel i5-2400 CPU (4 kernels) with Windows 7 sp1.
We have observed the same issue on several PC's with different configurations. For this reason we wait for a solution before we migrate this theme into production version of the application.
Hello,
Thank you for the additional information. To look into this, we do need to be able to reproduce the behavior. Have you been able to reproduce this in any smaller sample on the machines that do reproduce the issue or only in your application? For the machines that you have reproduced this on is there anything common to all environments such as the Windows OS version or video driver? I am asking because it seems that environment is a factor for the issue since you didn't reproduce this on your development machine.
Let me know if you have any questions.
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).
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.