In XAF, BLOB image properties are persisted as byte arrays which can be displayed in the following controls:
BLOB, or Binary Large OBject, is a set of binary data persisted as a single entity in the database.
The ImageEditorAttribute specifies Image Property Editors' settings when displaying images.
Refer to the Property Editors | Image Properties section in the Feature Center demo installed with XAF to see Image Property Editors in action. The Feature Center demo is installed in %PUBLIC%\Documents\DevExpress Demos 19.1\Components\eXpressApp Framework\FeatureCenter by default. The ASP.NET version of this demo is available online at http://demos.devexpress.com/XAF/FeatureCenter/. You can also watch the Image Property Editor tutorial video at the DevExpress YouTube channel.
Each WinForms Property Editor has a control that displays a corresponding property in a Detail View, and a repository item that displays a property in a List Editor that supports in-place editing. Both the control and repository item are shown below.
The PictureEdit and RepositoryItemImageEdit are used by default.
Both PictureEdit and ImageEdit editors allow end-users to perform Load, Save, Delete, Cut, Copy and Paste operations using a context menu.
Use ImageEditorAttribute to configure the ImagePropertyEditor for a particular business class property.
View mode controls:
Edit mode controls:
When displayed in view mode, the ImageEdit control is always read-only.
When the Property Editor is read-only, only the ASPxImage control is displayed. When it is editable, a table with the Edit and Clear ASPxButton type buttons is shown as well, and the ASPxUploadControl is used to upload a new image. A browser editor is displayed when no image is assigned.
Use the ImageEditorAttribute to configure the ASPxImagePropertyEditor for a particular business class property. Refer to the How to: Access the ASPxImagePropertyEditor controls in View and Edit modes KB article to learn how to access ASPxImagePropertyEditor's controls and customize them.
In the current implementation of the ASPxImagePropertyEditor, the upload progress is not be shown in case the ImmediatePostDataAttribute is applied to the current FileData property or the IModelCommonMemberViewItem.ImmediatePostData option is enabled in the Model Editor for the current View Item.