title: Setting the PaneGroup of a RadPane in the codebehind?
body: <p>I had created a pane group with rad panes in my XAML as follows :</p>
  
  <pre><code>       &lt;telerik:RadSplitContainer InitialPosition="DockedBottom" telerik:RadDocking.SerializationTag="RaddySplit"&gt;
                &lt;telerik:RadPaneGroup telerik:RadDocking.SerializationTag="PaneGroup"&gt;
                   &lt;telerik:RadPane Header="WW2 Adventure" telerik:RadDocking.SerializationTag="WW2"&gt;
                          &lt;vws:ww2gamegrid  /&gt;
                   &lt;/telerik:RadPane&gt;
                  &lt;telerik:RadPane Header="WW1 Adventure" telerik:RadDocking.SerializationTag="WW1"&gt;
                             &lt;vws:ww1gamegrid  /&gt;
                  &lt;/telerik:RadPane&gt;
               &lt;/telerik:RadPaneGroup&gt;
              &lt;/telerik:RadSplitContainer&gt;
  </code></pre>
  
  <p>This has a problem however, there is a bug in the telerik RadDocking Serialization, such that when you deploy a site with an additional tab, the number of tabs is maintained in the client's browsers isolated storage.</p>
  
  <p>So, when I try and deploy my new Silverlight page, with "<code>WW3gamegrid</code>" added in (another <code>RadPane</code>) the user is still returned the same code as above.</p>
  
  <p>Having googled this a bit, it seems as if adding this in the code behind could solve my problem. With that in mind, how can I add a <code>RadPane</code> to this <code>RadPaneGroup</code> in my <code>.xaml.cs</code> code behind?</p>
  
  <p>Any other solutions to the problem would of course, be gladly listened to :)</p>
  
  <p>Thanks very much.</p>
  
  <p>The code I have in the code behind is stolen from another website, and not fully implemented as I don't understand it. I have put it in the constructor for the xaml.cs file</p>
  
  <p>:</p>
  
  <pre><code>InitializeComponent();
  
   RadPane pane = new RadPane();
   pane.Title = "Pane2";
   pane.Header = "Pane2";
   pane.CanUserClose = false;
   pane.CanDockInDocumentHost = false;
   pane.Content = new Button() { Content = "button2" };
   pane.Tag = "tag";
   pane.PaneGroup();
   RadDocking.SetSerializationTag(pane, "abc"); 
  </code></pre>
  
  <p>How can I make this equivalent to my xaml above, essentially?</p>