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:
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