Layout persistence save


Author
Message
JSW W.
JSW W.
Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)
Group: Forum Members
Posts: 127, Visits: 1
What file format will save in smallest size?
Which format operate faster?

How to choose between these format?

I have a scenario need to work out for the layout save.
assuming the save was done in previous session:

- If I load layout back to my winform, my content will probably not load as well right?

- So should I recreated all contents and managers first then load layout. or the other way around?

- Further more, if I have nested managers then I need to load them from inside or from the outside?

"You should give unique string keys to each panel and NControlHost instances for the persistency to work properly."

What actually panel.ID is design for? sometimes I could not get correct value for this ID.

key is not the same as the ID?

How get to NControlHost - if you have manager, panel, and document?


Reply
Angel Chorbadzhiev
Angel Chorbadzhiev
Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)
Group: Forum Members
Posts: 139, Visits: 184

Hello JSW W.,

To be able to load previously saved state all you need is when the panels and documents are created to set uniquely their Key and Text property (only to NDockingPanel and NUIDocument).

To load the saved state you need to call one of the three overloads of the Load methods.

Finally, you should add the hosted controls in the panels or in documents if they are not there already.

Usually, when load a state the panels and documents are already created together with the controls that they contain, and you don't need to add them again.

Regards,

Angel.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search