Version: 10.2.1c and 10.2.1c SP3 |
ArcFM Engine Overview > Application Framework Overview > Application Framework Basics > Map Wrapper Command |
Product Availability: ArcFM Viewer for ArcGIS Engine
Custom commands must be added to the ArcFMViewer.exe.custom.layout XML file. You may notice that some commands require only one line in the XML, while others require several lines. The commands that require only one line of XML were created using the default constructors and no parameters need to be passed to the object.
The commands that require multiple lines of XML do require parameters to be passed to the object. Generally, these commands implement ICommand or derive from Esri's BaseCommand. The map command wrappers were designed to wrap ICommand objects. There are two types of command wrappers.
Miner.Windows.ArcGIS.MapCommand
This object is intended to wrap ICommands so that the Enabled method is called in response to the following events.
XML Snippet |
Copy Code
|
---|---|
<Command key="SelectByGraphicsCommand" type="Miner.Windows.ArcGIS.MapCommand, Miner.Windows.ArcGIS, Version=9.1.0.0, Culture=neutral, PublicKeyToken=0bbf99e30d318f01"> <CreateData> <Param Type="System.String" Value="Esri.ArcGIS.ControlCommands.ControlsSelectByGraphicsCommandClass, Esri.ArcGIS.ControlCommands, Version=9.0.0.560, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86" /> <Param Type="System.String" Value="SelectByGraphicsCommand" /> </CreateData> </Command> |
Miner.Windows.ArcGIS.MultiEventEnabledMapCommand
This command derives from MapCommand and is intended to wrap ICommands so that the Enabled method is called in response to the above events in addition to the following.
XML Snippet |
Copy Code
|
---|---|
<Command key="MapZoomToLastExtentBackCommand" type="Miner.Windows.ArcGIS.MultiEventEnabledMapCommand, Miner.Windows.ArcGIS, Version=9.1.0.0, Culture=neutral, PublicKeyToken=0bbf99e30d318f01"> <CreateData> <Param type="System.String" value="Esri.ArcGIS.ControlCommands.ControlsMapZoomToLastExtentBackCommandClass, Esri.ArcGIS.ControlCommands, Version=9.0.0.560, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86" /> <Param type="System.String" value="MapZoomToLastExtentBackCommand" /> </CreateData> </Command> |
Return to Application Framework Basics