ActionBase.PaintStyle Property
Gets or sets the paint style for the current Action.
Namespace: DevExpress.ExpressApp.Actions
Assembly: DevExpress.ExpressApp.v18.2.dll
Declaration
[DefaultValue(ActionItemPaintStyle.Default)]
public ActionItemPaintStyle PaintStyle { get; set; }
Property Value
Type | Default | Description |
---|---|---|
ActionItemPaintStyle | **Default** | An ActionItemPaintStyle enumeration value specifying the current Action’s paint style. |
Available values:
Name | Description |
---|---|
Default | The way in which an Action is represented in a UI is determined by XAF. For instance, in XAF v2008 vol 3, the default behavior corresponds to the ActionItemPaintStyle.Image value. |
Caption | An Action is represented in a UI by a caption. |
CaptionAndImage | An Action is represented in a UI by an image and a caption. |
Image | An Action is represented in a UI by an image. |
Remarks
This property specifies how the current Action is displayed in Detail and List Views. The following values are possible:
Enumeration Value | Description |
---|---|
Only caption is displayed: | |
Both the caption and image are displayed: | |
Only Image is displayed: | |
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the PaintStyle 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.