NDockingFrameworkState.Save is not persisting restored size when NUIDocument is minimized


NDockingFrameworkState.Save is not persisting restored size when...
Author
Message
Brad Swearingen
Brad Swearingen
Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)
Group: Forum Members
Posts: 53, Visits: 3

I've got code like the following which persists my layout to a file correctly.

NDockingFrameworkState dfs = new NDockingFrameworkState(dm);

String curPath = -- my file path goes here --

dfs.PersistDocuments = true;

dfs.PersistStyles = true;

dfs.Save(curPath);

However, if a NUIDocument is minimized it doesn't save its restored location and size.  Thus, when loading that layout later the restored location and size is lost.  When I look in the saved .XML files I can see the postion and size are all set to 0 for the minimized NUIDocument.  If I manually edit this file and put appropriate location and size information in and then do the Load() on it the restored postions are used when the user clicks to restore the MDI document.  Is this a bug or is there a setting I need to indicate to show that the restored position should be persisted too?  I'm using the 11.1.17.12 build.

Here's what I see in the .XML file (and if I change those 0's to other numbers they get used during the Load method):

        <HostBounds>
          <Location>
            <X>0</X>
            <Y>0</Y>
          </Location>
          <Size>
            <Width>0</Width>
            <Height>0</Height>
          </Size>
          <X>0</X>
          <Y>0</Y>
          <Width>0</Width>
          <Height>0</Height>
        </HostBounds>
        <WindowState>Minimized</WindowState>


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Brad,

The docking framework state saves only the Bounds of the documents.
When the document is minimized its bounds are the actual size and location of the minimized document.
If these bounds are saved when the document is restored it will not be displayed correctly.
The restored bounds are not persisted.

Best Regards,
Nevron Support Team


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