Skip to main content
.NET 6.0+

ActionBase.ImageName Property

Specifies a name of the image displayed for an Action.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

[DefaultValue(null)]
public string ImageName { get; set; }

Property Value

Type Default Description
String null

A string value that represents the name of the current Action’s image.

Remarks

Use the ImageName property to specify the name of the image that will be displayed for the current Action. By default, this property is not set. You can set a value in the Controller’s constructor or Designer. This value will be saved to the Application Model‘s IModelAction node. You can change this value in the Model Editor. In a UI, the value which is specified in the Application Model’s .xafml file loaded last will be displayed. For information on the order of Application Model differences loading, refer to the Application Model Basics topic.

When setting a value to this property, the ActionBase.Changed event is raised.

To learn the concept by which XAF displays images for Actions and other UI elements, refer to the Add and Replace Icons topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ImageName property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also