The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
MUMurugan Syncfusion Team October 11, 2006 04:09 PM UTC
Hi Daniel,
Before going to load from MemoryStream its seeking position has to be initialized to Beginning of the stream. Please refer the attached code snippet for more details.
private byte[] GetDockState ( ) { MemoryStream ms = new MemoryStream(); AppStateSerializer app = new AppStateSerializer(SerializeMode.XMLFile, ms); this.dockingManager1.SaveDockState(app); app.PersistNow(); return ms.ToArray(); }
private void SetDockState (byte[] value) { MemoryStream ms = new MemoryStream(value); ms.Seek(0, SeekOrigin.Begin); this.dockingManager1.LoadDockState(new AppStateSerializer(SerializeMode.XMLFile, ms)); }