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,
Thank you for the post. I have been looking into it and I cannot fully understand want is your desired functionality.
I have tested the sample application you have attached with the RTM and the latest service release for NetAdvantage 12.1. I could not see a difference between the button and the command. They both are loading for the same time.
Would you please explain further want is your desired functionality, in order for me to be able to identify the issue faster and provide you with better support.
Looking forward to hearing from you.
If I remove the Click handler from the button markup and replace it with Command="ApplicationCommand.Find", the behavior is still as described above.