Hi,
I'm using the example here:
(By the way, your documentation is unfinished and needs some polish. I also couldn't get the CHM in the latest version to work again)
I want to be able to allow users to load/save layouts.My difference is that I am creating the panels programmatically. An excerpt of my code is below:
switch (paneType) |
{ |
case PaneType.Document: |
RadDocumentPane documentPane = new RadDocumentPane(); |
documentPane.Header = name; |
documentPane.Title = name; |
//DocumentHost documentHost = (DocumentHost)_radDocking.DocumentHost; |
RadSplitContainer splitContainer = (RadSplitContainer)_radDocking.DocumentHost; |
RadPaneGroup documentPaneGroup = (RadPaneGroup)splitContainer.Items[0]; |
documentPaneGroup.AddItem(documentPane, DockPosition.Center); |
break; |
case PaneType.Explorer: |
case PaneType.Explorer | PaneType.Document: |
// default to left |
RadPane pane = new RadPane(); |
pane.Header = name; |
pane.Title = name; |
pane.Content = new TextBlock() { Text = "Hello from " + name }; |
foreach (RadSplitContainer dockedSplitContainer in _radDocking.Items) |
{ |
switch (dockedSplitContainer.SplitterPosition) |
{ |
case Dock.Right: |
RadPaneGroup paneGroup = (RadPaneGroup)dockedSplitContainer.Items[0]; |
paneGroup.AddItem(pane, DockPosition.Center); |
break; |
} |
} |
break; |
} |
How do I set the SerializationTags to permit the reliableserialisation of the layout?