This question is locked. New answers and comments are not allowed.
Hi,
I am trying to implement a feature for load/save named docking layouts like you have in Team Pulse demo for grids.
1. I have a dropdown with the list of available layouts like "default", "view 1", "view 2", "custom".
2. Initially I save default layout.
3. I subscribe to docking PaneStateChanged and all panes SizeChanged and create/modify "custom" layout.
4. You can rename current "custom" layout for later usage.
The issue I found is that when I save layout in PaneStateChanged, affected pane gets into layout xml only if it's in floating state. If I dock a pane in some pane group, group.EnumeratePanes() doesn't return my pane. That's why it doesn't get into layout xml.
This is a bug or by design?
Please advise how I can get it working.
PS. I found a post where you suggested using LayoutUpdated event but I don't think this is good idea. Any mouse move causes layout updates.
I am trying to implement a feature for load/save named docking layouts like you have in Team Pulse demo for grids.
1. I have a dropdown with the list of available layouts like "default", "view 1", "view 2", "custom".
2. Initially I save default layout.
3. I subscribe to docking PaneStateChanged and all panes SizeChanged and create/modify "custom" layout.
4. You can rename current "custom" layout for later usage.
The issue I found is that when I save layout in PaneStateChanged, affected pane gets into layout xml only if it's in floating state. If I dock a pane in some pane group, group.EnumeratePanes() doesn't return my pane. That's why it doesn't get into layout xml.
This is a bug or by design?
Please advise how I can get it working.
PS. I found a post where you suggested using LayoutUpdated event but I don't think this is good idea. Any mouse move causes layout updates.