Hi,
I'm using the SaveLayout/LoadLayout functionality to save/restore my pane positions at application closing/application startup.
Most of the time it works fine, but sometime, the LoadLayout fails and throw an exception :
Index must be within the bounds of the List.Parameter name: index
After a quick investigation, the problem is apparently linked to the property unpinnedOrder used in the ContentPane definition list (first part of the layout xml, check file in attachment).
The contentPane '_noteList' has the property unpinnedOrder=1, with this value, the loadLayout fails (check stack trace file for more info). If I change manually this value to -1, it works.
For info we are using version 10.1.20101.1000
Hi, I am running into same issue. Did u find a resolution to this issue ?
regards,
Atul
There doesn't seem to be anything wrong with the layout file itself. Perhaps there is something about the specific scenario. Could you provide a project that demonstrates the exception? When the exception happens can you check the contents of the collection that is throwing the exception and see what panes are in there? Do all of these panes exist in the xamDockManager when the layout is loaded or do you dynamically create panes (e.g. handle the InitializePaneContent event)?