wpf-devexpress-dot-xpf-dot-editors-1f6608f6.md
An editor that displays an image within a dropdown window.
Namespace : DevExpress.Xpf.Editors
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
[DXLicenseWpfEditors]
public class PopupImageEdit :
PopupBaseEdit,
IImageEdit,
IInputElement
<DXLicenseWpfEditors>
Public Class PopupImageEdit
Inherits PopupBaseEdit
Implements IImageEdit,
IInputElement
The PopupImageEdit control is an editor that displays an image within a dropdown window.
Tip
The PopupImageEdit class inherits its features from the PopupBaseEdit class.
Refer to the PopupBaseEdit class description for information on derived features and API.
<Window ...
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
<!-- Specify value using the PopupImageEdit.Source property -->
<dxe:PopupImageEdit Source="../Images/Persons/m02.jpg" ShowMenuMode="Hover"/>
<!-- Specify value using the BaseEdit.EditValue property.
Userpic is a data context field that stores values of Byte[] type. -->
<dxe:PopupImageEdit EditValue="{Binding UserPic}" />
Use the Source property to specify a path to the editor’s image. Note, that end users can load their own images when the image menu is available.
You can use the EditValue property to get or set the displayed image as an array of bytes.
Always or Empty, users can click within an image editor to open the Open dialog and load a new image.The PopupImageEdit control supports the following image formats.
Use the PopupImageEdit.ShowMenu and PopupImageEdit.ShowMenuMode properties to control the availability of the image menu.
Use the PopupImageEdit.MenuTemplate and ImageEdit.MenuContainerTemplate properties to implement a custom menu appearance.
To specify how the image should be stretched to fill the available space, use the PopupImageEdit.Stretch property. The following stretch modes are available.
Image menu displays the Take Snapshot button. Clicking this button allows end users to take a picture using a web camera.
If the AutoSizePopup property is set to true, the image popup is resized to fit the image size.
Show 13 items
Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control BaseEdit TextEditBase TextEdit ButtonEdit PopupBaseEdit PopupImageEdit
See Also