What populates the AffectedElementSerializationTag?

3 posts, 0 answers
  1. Trevor Leybourne
    Trevor Leybourne avatar
    5 posts
    Member since:
    Feb 2010

    Posted 14 Jun 2010 Link to this post

    Hi there, I am trying to define a Load/Save Layout with content function and my event only returns a null AffectedElementSerializationTag. What populates this value?

    My code is as follows:

            private string GetLayout()
            {
                using (var stream = new MemoryStream())
                {
                    docking.ElementSaved += ElementSaved;
                    docking.SaveLayout(stream, true);
                    docking.ElementSaved -= ElementSaved;

                    stream.Position = 0; 
                    using (var reader = new StreamReader(stream)) {
                        return reader.ReadToEnd();
                    }
                }
            }
            void ElementSaved(object sender, LayoutSerializationEventArgs e)
            {
                var pane = e.AffectedElement as RadPane;
                if (pane != null)
                {



                    //pane.Content = this.GetPaneContent(e.AffectedElementSerializationTag);
                }
            }

    In the above, e.AffectedElementSerializationTag is always NULL.

    Trevor
  2. Trevor Leybourne
    Trevor Leybourne avatar
    5 posts
    Member since:
    Feb 2010

    Posted 15 Jun 2010 Link to this post

    I have worked this out. This can be set through XAML as a dependancy property on the RadDocking control for the Pane or through code by using the SetValue method to set the DependencyProperty. There is no exposed public property to set this value directly in code.
  3. DevCraft banner
  4. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 16 Jun 2010 Link to this post

    Hi Trevor,

     Yes, we decided to make the SerializationTag an attached property. You could read more about this in the following help article: http://www.telerik.com/help/silverlight/raddocking-features-save-load-layout.html.

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top