Ensuring Workspaces open with layers in the order specified in Workspace Manager in MapXtreme .NET

Product Affected: MapXtreme® .NET
Operating System: Windows 7, 8, 10, Server 2012 R2, Server 2008
Follow these steps to ensure MapXtreme .NET opens workspaces with layers in the order specified in Workspace Manager:
  1. Ensure the MapXtreme project is closed.
  2. Save the workspace when it is complete.
  3. Close Workspace Manager.
  4. Re-open Workspace Manager.
  5. Use the File > Open Workspace command to open the workspace.
  6. Save the workspace.
This procedure saves the file so that MapXtreme .NET will use the WorkspaceLoader class to open the .mws file, hence keeping the layers ordered as intended.

Attached to this article is a small desktop sample that loads a test workspace into the map using 2 different methods – WorkSpaceLoader and MapworkSpaceLoader.

 
UPDATED:  August 30, 2019