Skip to main content
A newer version of this page is available. .

PopupImageEdit Class

Represents an editor that displays an image within a dropdown window.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v18.2.dll

Declaration

public class PopupImageEdit :
    PopupBaseEdit,
    IImageEdit,
    IInputElement

Remarks

The PopupImageEdit control represents an editor that displays an image within a dropdown window.

PopupImageEdit

Its features include:

  • Supported Image Formats - Bitmap, JPEG, GIF and PNG.
  • Configurable Image Size - an image can be resized to fill the image box, stretched or shrunk to fit the size of the dropdown (PopupImageEdit.Stretch).
  • Built-in Menu -end-users can cut, copy, paste, delete, load or save an image. It’s also possible to remove the default commands and/or add custom commands (via templates). This menu is automatically shown when the mouse pointer enters the image, and is automatically hidden when the mouse pointer leaves the image (PopupImageEdit.ShowMenu).
  • Auto-Sizing Image Popup - if the size of an image is smaller than the size of an editor’s popup window, the image popup is automatically resized to fit the image size.
  • Easy Image Loading - clicking within an image editor shows the Open dialog allowing you to select an image. This behavior is controlled by the PopupImageEdit.ShowLoadDialogOnClickMode property.
  • Menu Templates - use the PopupImageEdit.MenuTemplate and PopupImageEdit.MenuContainerTemplate properties, to provide a custom menu appearance.
  • Localizable UI

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PopupImageEdit class.

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.

See Also