Hi,
I am trying to save the layout by myself, along with some other information, and recreate the same layout later, on different instance/invocation.
I dont want to use serialization provided by syncfusion and trying to dock controls as they were at the time of save using code.
I tried different options and couldnt restore to the state which i tried to save.
Do you have any suggestions on how to do it? Or Is it not possible to do it through code?
I have attached a sample application to show my issue.
The application:
It has 2 panels from designer and another one created through code. Panels can be created through different menu options.
On startup it will have Panel1 docked to the left end and Panel2 to the right end. Panel3 will be tabbed to Panel2 through code.
New dockpanel menu will create new panels docked to the form.
New Tabpanel will create new panel and dock to visible panel created through NewdockPanel menu.
Layout->save will save the properties of the panels.
Layout->load will load the saved layout and try to recreate the layout using method1
Layout->load2 will load the saved layout and try to recreate the layout using method2
Issue:
Modified panels to have view as shown in attached image, View1 saved. Saved and tried to load it and couldn't reproduce initial view.
Tried to do the same again with a layout as in View 2 saved. In this case also initial layout couldn't be retrieved.
The image shows initial layout, modified layout and the resultant layout obtained.
Method 1:
Docked non-tabbed controls first and then tabbed controls.
Method 2:
In addition to steps in method 1, tried to change the location, size of controls and adjust the layout.
Note:
Attached dockwindow_position.zip and screen shots.zip
Regards,
VS
Attachment:
screen_shots_1310462b.zip