Hi Sebastian,
Thank you for your report and providing the sample project.
The problem is that the serialization engine currently processes only elements placed into the visual tree. Since the content of inactive tabs is not placed into the visual tree, these controls are not serialized.
Starting from the next minor update for v10.2 (v10.2.9), you can manually provide a list of objects that should be serialized/deserialized. The code below illustrates this approach:
[C#]DXSerializer.Deserialize(new DependencyObject[] { dockManager, grid1 , grid2}, "layout.xml", "DXWpfApplication", null); DXSerializer.Serialize(new DependencyObject[] { dockManager, grid1 , grid2 }, "layout.xml", "DXWpfApplication", null);
We understand that this problem is vital for your development, and we can provide you with an intermediate daily build, containing these changes. Just drop us a line if you need this.
We will also continue working on this issue, and will check if there is a way to automatically serialize all objects in this situation. Please give us some time to examine whether or not it is possible.
Thanks,
Vito
Hi Sebastian,
Our developers have found a way to fix this problem. The fix will be included in the next minor updates for both v10.2 (v10.2.9) and v11.1 (v11.1.3). If you wish to try the fix immediately, please click the "Request Fix" button. We will publish a daily build, containing necessary changes.
I have also noticed that this report is marked as "Private" and so, it is invisible to others. Can we make it public, so that other customers who experience this problem can view it? If we need to delete any private info from this report (for instance, a project you attached), please let us know.
Thanks,
Vito
Hi Vito, thanks for the response on our issue. Obviously we would prefer a real fix but I understand this is a significant code change given the way the existing implementation relies upon the visual tree. With the workaround is 10.2.9, will it be harmless to pass through a complete list of grids, regardless of whether they are docked as tabs or split panes? If that's possible, then that would make things simpler for us. Also, will this work with floating panes as well as tabbed/split panes?
Hi Sebastian,
Ok, I have made this report public. Thank you for allowing us to publish it.
We already prepared a build, containing the fix. It is accessible here:
http://downloads.devexpress.com/Share/DXP/110523/DXperience-10.2.8.11143.exe
Please try it at your end, and let us know how it goes.
Thanks,
Vito
Great, that appears to work very well in the context of the sample app. We will confirm whether this fixes the issue with our production code in the next few days, but it certainly looks like it should do, based upon the behaviour in the sample. Many thanks to you and the dev team for a swift response!
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.
Facebook
Twitter
Google+