共用方式為


How to: Set an Icon on an Action

The Microsoft Dynamics NAV Windows client includes images that you can use on actions in command bar menus and promoted actions on the ribbon.

You add images to page actions with Action Designer. To add an image to an action, you must provide the name of the image. To view all the available action images, see Microsoft Dynamics NAV 2013 Icon Collection.

By default, the size of images is 16 pixels high by 16 pixels wide. For promoted actions, you can choose to display larger images that are 32 pixels high and 32 pixels wide.

Note

For information on using images on activity buttons in the navigation pane of the Microsoft Dynamics NAV Windows client, see How to: Set an Icon on an Activity Button.

To add an image on an action

  1. To open Object Designer, in the development environment, on the Tools menu, choose Object Designer.

  2. To open Page Designer, in Object Designer, choose Page, select the page, and then choose the Design button.

  3. On the View menu, choose Page Actions.

  4. In Action Designer, select the action for which you want the image.

  5. On the View menu, choose Properties.

  6. In the Properties window, in the Value column of the Image property, choose the AssistEdit button

  7. In the Image List window, select the image that you want to use for the action, and then choose the OK button.

    To view the available images, see Action Icon Library.

  8. In the Properties window, if the action is promoted to the ribbon and you want the image to display a large icon, then set the PromotedIsBig property to Yes.

  9. Close the Properties window, and then save the page.

See Also

Tasks

How to: Add Actions to a Page
How to: Promote Actions to the Ribbon on Pages

Concepts

Action Icon Library
Adding Actions to Pages