ActionBase.PaintStyle Property

Gets or sets the paint style for the current Action.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v18.1.dll

Syntax

public ActionItemPaintStyle PaintStyle { get; set; }

Returns

Type Description
ActionItemPaintStyle

An ActionItemPaintStyle enumeration value specifying the current Action's paint style.

This property specifies how the current Action is displayed in Detail and List Views. The following values are possible:

Enumeration Value

Description

ActionItemPaintStyle.Caption

Only caption is displayed:

ActionBasePaintStyleCaption

ActionItemPaintStyle.CaptionAndImage

Both the caption and image are displayed:

ActionBasePaintStyleCaptionImage

ActionItemPaintStyle.Image

Only Image is displayed:

ActionBasePaintStyleImage

ActionItemPaintStyle.Default

The behavior is determined by XAF. For instance, in XAF v2008 vol 3 the default behavior corresponds to the ActionItemPaintStyle.Image value.

This property's value is saved to the IModelAction.PaintStyle property of the appropriate Application Model's ActionDesign | Actions | <Action> node. You can change this value using the Model Editor. In a UI, the value which is specified in the Application Model's .xafml file as loaded last will be displayed. For information on the order of Application Model differences loading, refer to the Application Model Basics topic.