or
using
(IsolatedStorageFile storage = IsolatedStorageFile.GetUserStoreForAssembly())
{
try
{
using
(var isoStream = storage.OpenFile(
"RadDocking_Layout.xml"
, FileMode.Open))
{
this
.radDocking.LoadLayout(isoStream);
}
}
catch
(Exception ex)
{
logger.Error(
"Reading pane layout"
);
}
}
if
(panelMap.PaneGroup ==
null
)
{
//this doesn't work
radDocking.Items.Add(panelMap);
//neither does adding into existing pane group
paneTest.Items.Add(panelMap);
//neither does building a new group for the pane to go into
RadPaneGroup rpg =
new
RadPaneGroup();
rpg.Items.Add(panelMap);
radSplit.Items.Add(rpg);
}
//Part of the XAML
<tel:RadDocking Name=
"radDocking"
HasDocumentHost=
"False"
>
<tel:RadSplitContainer x:Name=
"radSplit"
Width=
"365"
InitialPosition=
"DockedLeft"
Orientation=
"Vertical"
>
<tel:RadPaneGroup x:Name=
"paneTest"
>
<tel:RadPane x:Name=
"panelMap"
Header=
"Map"
CanUserClose=
"False"
Height=
"24"
VerticalAlignment=
"Bottom"
IsSelected=
"True"
tel:RadDocking.SerializationTag=
"Map"
>