The layout of bars can be saved to a data store (for instance, a stream), and then restored from this data store, overriding the changes made since the layout was saved. This document provides more information on this topic.
For the layout of bars to be saved, set the DevExpress.Xpf.Core.Serialization.DXSerializer.DXSerializer.SerializationID attached property for a BarManager to any object (for example, a string).
System.IO.Stream str;
// Create and save the layout of bars to a new memory stream
str = new System.IO.MemoryStream();
barManager1.SaveLayoutToStream(str);
str.Seek(0, System.IO.SeekOrigin.Begin);
//...// Load the layout of bars from the memory stream
barManager1.RestoreLayoutFromStream(str);
str.Seek(0, System.IO.SeekOrigin.Begin);
Dim str As System.IO.Stream
' Create and save the layout of bars to a new memory stream
str = New System.IO.MemoryStream()
BarManager1.SaveLayoutToStream(str)
str.Seek(0, System.IO.SeekOrigin.Begin)
' ..' Load the layout of bars from the memory stream
BarManager1.RestoreLayoutFromStream(str)
str.Seek(0, System.IO.SeekOrigin.Begin)
Was this page helpful?
Thanks for your feedback!
How can we improve this help topic?
Additional comments/thoughts:
If you have any questions, submit a ticket to our Support Center.