The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

ActionBase.PaintStyle Property

Gets or sets the paint style for the current Action.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

[DefaultValue(ActionItemPaintStyle.Default)]
public ActionItemPaintStyle PaintStyle { get; set; }
<DefaultValue(ActionItemPaintStyle.Default)>
Public Property PaintStyle As ActionItemPaintStyle
[DefaultValue(ActionItemPaintStyle.Default)]
public ActionItemPaintStyle PaintStyle { get; set; }
<DefaultValue(ActionItemPaintStyle.Default)>
Public Property PaintStyle As ActionItemPaintStyle
[DefaultValue(ActionItemPaintStyle.Default)]
public ActionItemPaintStyle PaintStyle { get; set; }
<DefaultValue(ActionItemPaintStyle.Default)>
Public Property PaintStyle As ActionItemPaintStyle

Property Value

Type Default Description
ActionItemPaintStyle

Default

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

Property Value

Type Default Description
ActionItemPaintStyle

Default

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

Property Value

Type Default Description
ActionItemPaintStyle

Default

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

Remarks

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.

See Also