Workspace manager extensions, Creating a workspace extension – Pitney Bowes MapXtreme User Manual

Page 478

Advertising
background image

Appendix B: Customizing MapXtreme

Workspace Manager Extensions

MapXtreme v7.1

485

Developer Guide

XmlNode userData = this.UserDataXmlNode;
foreach (XmlNode childNode in userData.ChildNodes)
{

string text = childNode.Name;
text = childNode.InnerText;
// user can do their own load stuff here

}

}

}

Workspace Manager Extensions

MapXtreme’s workspace-building tool Workspace Manager can be extended to add new menu
commands, tools and tab windows that make creating workspaces easier.

For details on the Workspace Manager capabilities and user interface, see

Chapter 23: Workspace

Manager

.

Workspace Manager extensions are .NET assemblies that you write to extend the functionality of
Workspace Manager. Most likely you will build these from the MapXtreme API to add capabilities
from the object model that are not exposed in Workspace Manager.

For example, you can add more menu items, tools, tab windows or react to change events. Layer
Control is also extensible, so you can add new capabilities to its menu in the same way.

Once your extension is ready to use, simply load it via the new Extensions menu on Workspace
Manager’s updated menu strip. It can also be autoloaded to be available when Workspace Manager
starts.

Examples of Workspace Manager extensions you might want to build include a table browser with
sorting capabilities, custom theme templates, or new tools for object creation and editing.

Creating a Workspace Extension

MapXtreme provides an assembly called MapInfo.WorkspaceManager.Extension.dll that defines the
interfaces to help you add your own functionality to Workspace Manager.

public interface IWorkspaceManagerExtension
{

string Name

{
get;
}

string Version

{
get;
}

bool HasPropertiesDialog

{
get;
}

Advertising