Adding new pane where old panes are loaded through serialisation

2 posts, 0 answers
  1. Mike
    Mike avatar
    28 posts
    Member since:
    Apr 2013

    Posted 20 May 2014 Link to this post


    I have an app that I have a docked component and the existing panes are saved/loaded via isolated storage. This has been working fine. I've now added a new pane to my app, via XAML, but when it's run on a system where the layout is loaded it is never displayed.

    If I exclude the layout load step the new pane appears, so I guess in the load it's overriding the entire layout of the dock component (as expected). If I then manually add a step in the LoadLayout method to add the pane, that also seems to be ignored.

    Here is the important code and the examples of what I've tried:

    using (IsolatedStorageFile storage = IsolatedStorageFile.GetUserStoreForAssembly())
            using (var isoStream = storage.OpenFile("RadDocking_Layout.xml", FileMode.Open))
        catch (Exception ex)
            logger.Error("Reading pane layout");
    if (panelMap.PaneGroup == null)
        //this doesn't work
        //neither does adding into existing pane group
        //neither does building a new group for the pane to go into
        RadPaneGroup rpg = new RadPaneGroup();
    //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">

    I've obviously got something missing, but when I've looked a the examples I can't seem to figure out what.

  2. George
    George avatar
    1332 posts

    Posted 23 May 2014 Link to this post

    Hi Mike,

    Try to create the pane in the code behind. You can find a sample project which after loading the layout creates a new pane and add it next to the existing one. 

    Hope this helps.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top