My docking definition contains one RadDocumentPane and several RadPane panes, as shown below.
Then, from UI, I'm switching between two docking pane layouts that contain no information about this RadDocumentPane. Still, it's there when deserialized.
<telerik:RadDocking.DocumentHost>
<telerik:RadPaneGroup>
<telerik:RadDocumentPane Visibility="Collapsed" CanFloat="False" CanUserClose="False"
ContextMenuTemplate="{x:Null}" telerik:RadDocking.SerializationTag="MainPane">
How can I switch between two layouts and change the RadDocumentPane? As it is now, my document pane stays the same when I load different layouts - even though it's not even present in the serialized xml.
UPDATE
Solved it using the xml below. Used the wrong tags in my serialized xml. Sorry :)
<RadDocking>
<DocumentHost>
<RadSplitContainer>
<Items>
<RadPaneGroup SelectedIndex="0">
<Items>
<RadDocumentPane ... />
</Items>
</RadPaneGroup>
</Items>
</RadSplitContainer>
</DocumentHost>
<SplitContainers>
...
Then, from UI, I'm switching between two docking pane layouts that contain no information about this RadDocumentPane. Still, it's there when deserialized.
<telerik:RadDocking.DocumentHost>
<telerik:RadPaneGroup>
<telerik:RadDocumentPane Visibility="Collapsed" CanFloat="False" CanUserClose="False"
ContextMenuTemplate="{x:Null}" telerik:RadDocking.SerializationTag="MainPane">
How can I switch between two layouts and change the RadDocumentPane? As it is now, my document pane stays the same when I load different layouts - even though it's not even present in the serialized xml.
UPDATE
Solved it using the xml below. Used the wrong tags in my serialized xml. Sorry :)
<RadDocking>
<DocumentHost>
<RadSplitContainer>
<Items>
<RadPaneGroup SelectedIndex="0">
<Items>
<RadDocumentPane ... />
</Items>
</RadPaneGroup>
</Items>
</RadSplitContainer>
</DocumentHost>
<SplitContainers>
...