Adding and managing behaviors

Behaviors are pieces of functionality in the ArcGIS Viewer for Silverlight that are always enabled and do not necessarily require user interaction. Behaviors are initiated when an application loads, and without any action by the end user. By default, the Application Builder includes a Show Map Coordinates behavior that you can add to Viewer applications. You may also create and add your own behaviors to the Application Builder as an add-in. For more information, see Create a Map Behavior.

Adding behaviors

Use the Add button in the Behaviors section on the Tools tab of the Application Builder to add an out-of-the-box or custom behavior to your Viewer application. To include a custom behavior, first upload the add-in in the Application Builder Settings page. For more information, see Extending the ArcGIS Viewer for Silverlight.

  1. Click Add in the Behaviors section on the Tools tab to display the Add Behavior dialog box.

    Tools tab

  2. Select the desired behavior and click Next.
    Add behavior dialog box
  3. Specify a title for the behavior, and if applicable, click Configure to configure behavior settings. Click OK.
    Add Behavior title dialog box

Managing behaviors

Use the Manage Behaviors dialog box to enable, disable, re-order, add, or delete the Viewer's behaviors.

  1. Click Manage in the Behaviors section on the Tools tab to display the Map Behaviors dialog box. By default, the Identify behavior is enabled. The Identify behavior enables the pop-up's on click functionality.
    Manage Map Behaviors dialog box
  2. Select a behavior in the dialog box to enable the Add, Remove, Configure, Move Up, and Move Down buttons. The Configure button will only be enabled if the behavior supports configuration.
  3. Use the Move Up and Move Down buttons to specify the load order of the behaviors. The order listed in the dialog box is the order in which they are loaded in the application.

1/26/2015