The requested page is not available for the requested platform. You are viewing the content for Default platform.

BootstrapBinaryImage Class

Represents an editor capable of displaying images from a binary stream.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v19.2.dll

Declaration

[ToolboxTabName("DX.19.2: Bootstrap Controls")]
[DXClientDocumentationProviderWeb("BootstrapBinaryImage")]
public class BootstrapBinaryImage :
    ASPxBinaryImage,
    ISimpleRenderControl,
    IBootstrapEditorCssClassesOwner
<ToolboxTabName("DX.19.2: Bootstrap Controls")>
<DXClientDocumentationProviderWeb("BootstrapBinaryImage")>
Public Class BootstrapBinaryImage
    Inherits ASPxBinaryImage
    Implements ISimpleRenderControl,
               IBootstrapEditorCssClassesOwner

Remarks

The BootstrapBinaryImage control can be used to display on the web page any valid image (supported by the requesting browser) taken from a binary stream.

This class inherits its basic functionality from its ancestor. The ASPxBinaryImage.ContentBytes property provides access to the editor's contents represented by an array of bytes. The ASPxBinaryImage.StoreContentBytesInViewState property allows you to control whether the editor's content should be stored within the editor's view state between postbacks.

Note

The client-side equivalent of this editor control is represented by the BootstrapClientBinaryImage object. The editor's client-side API is enabled if the ASPxEditBase.ClientInstanceName property is defined, any client event is handled, or the ASPxEditBase.EnableClientSideAPI property is set to true. Available client events can be accessed via the BootstrapBinaryImage.ClientSideEvents property.

Examples

This example demonstrates how to enable the Binary Image's drag-and-drop feature.

The image below shows the result:

BootstrapBinaryImage_Example

<dx:BootstrapBinaryImage runat="server">
    <EditingSettings Enabled="true" AllowDropOnPreview="true" EmptyValueText="Drop image here" />
</dx:BootstrapBinaryImage>
See Also