There is a bit of a rendering delay when XDG first loads -- that's documented and understood. However, I'm trying to account for a discrepancy when the same, empty grid loads in a popup from a button, versus from a command -- each behaves differently. I've attached a simple demo app, and your help is appreciated.
If you start the main window, and click the Find command in the menu, notice how the window loads and the grid appears slightly afterwards. Close the main window and restart it (you must do this each time for first load comparison). After restart click the large "Find" button, and notice how the window loads intact, grid included, after perhaps a slightly longer delay, not certain. Both command and button invoke the same code. I need the latter behavior in my command. I suspect it has something to do with resource loading, but I'm beyond my knowledge of WPF here.
Hello Darryl,
I have further investigated your issue. I have tested the attached sample with the settings you have provided. And I was not able to reproduce the behavior when the grid appears together with the window. I am getting the functionality shown in the previously attached videos. The behavior when the window appears first, then the grid is rendered is the expected behavior for the grid. Since it cannot show the grid without the window to be rendered first.
Please do not hesitate to let me know if you have any further question on the mater.
First of all, thank you for going to the trouble of making the videos. What I see on them is interesting. The grids do appear in the same manner as you have stated, but they BOTH have a slight rendering delay for the empty grid. Notice how the window appears first, and then the grid renders 1-2 seconds later. On my machine, that only happens with the Find command. With the button, the grid appears at the exact same time as the window. And consistently so, such that I thought it was something we could isolate, like a resource loading thing that I might be able to influence in code. Had my machine done as yours is, I would have never raised the question.
For the record my environment is as follows:
Make: Dell
Model: Dimension T1600.
CPU: Intel i3-2100
Memory: 2GB
Graphics card: NVidia GeForce GT520 1GB DDR3
OS: Windows 7x64 w/ SP1
IDE: Visual Studio 10.0.40219.1 SP1 / C# .Net 4.0,30319 SP1
InfragisticsWPF4.DataPresenter.v12.1, Version=12.1.20121.2201
If there's nothing more we can do I'll mark this as answered. Thanks very much.
I have further investigated your issue. I have tested the sample you have provided the way you explained – start the application, click the button, restart the application, click the “Find” command. And I get the same behavior with both – the command and the button. First the window is loaded then the grid inside it. This behavior is expected for the grid, since it cannot load the grid before the window.
I have made two videos for you, in order to show you the behavior I am getting. One video to show you the behavior with the "Find" command and one - for the button. I have tested the sample with the latest service release for WPF 12.1 – 2201.
In order for me to be able to identify your issue faster and provide you with better support, would you please provide me with more detailed information regarding the environment in which you are developing your application (Operating system, Service Release, Integrated development environment and the specific version of our product that you are using and any other information that might help reproducing your issue)?
Looking forward to hearing from you.
So we're clear about this, it's the timing of the rendering, not the content, and its the first render after startup, so you have to close the window after each comparison.
With the command, the grid renders AFTER the window displays. With the button, the grid renders WITH the window display. Please carefully notice the timing. It's definitely happening, and it's very ackward to see the grid render late when the user issues the Find command after startup.
If you still can't see it, please let another person take a look. Thank you.
I just installed the latest 12.1 service release and the problem remains. The empty grid renders a second after the window when the command is used, but it renders at the same time as the window when the button is used. And it's important to restart the app each time because it only happens with the first load.
After you saying that when you start the app, and click the Find command, the window appears with the header from the empty grid, together? No delay for the header with the command?