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

PopupImageEditSettings Class

Contains settings specific to the PopupImageEdit editor.

Namespace: DevExpress.Xpf.Editors.Settings

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public class PopupImageEditSettings :
    PopupBaseEditSettings

Remarks

DevExpress container controls (GridControl, TreeListControl, and so on) use DevExpress WPF Editors to edit data they display. Each editor has a helper class (a BaseEditSettings descendant) that is responsible for the editor’s functionality. When the same editor is used in multiple locations, a container control uses this helper class to paint its cells. The actual editors are only created when users start to edit, and are automatically deleted when editing is completed.

Refer to the following help topic for more information: Assign Editors to Cells.

For detailed information on the PopupImageEdit editor, refer to the following help topic: PopupImageEdit.

The following code sample demonstrates how to assign the PopupImageEdit editor to GridControl cells:

PopupImageEditSettings - Example

<Window ...
        xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
        xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">

<dxg:GridControl x:Name="grid">
    <!-- ... -->
    <dxg:GridColumn FieldName="Image">
        <dxg:GridColumn.EditSettings>
            <dxe:PopupImageEditSettings PopupMaxWidth="400" PopupMaxHeight="250" 
                                        ShowMenu="True" ShowMenuMode="Always"/>
        </dxg:GridColumn.EditSettings>
    </dxg:GridColumn>
</dxg:GridControl>
public class TestData {
    // ...
    public ImageSource Image { get; set; }
}
public partial class MainWindow : Window {
    public MainWindow() {
        InitializeComponent();
        grid.ItemsSource = new ObservableCollection<TestData>(GetData());
    }
    static IEnumerable<TestData> GetData() {
        yield return new TestData() { /* ... */ Image = GetImage("/Images/1.jpg") };
    }
    static ImageSource GetImage(string path) {
        return new BitmapImage(new Uri(path, UriKind.Relative));
    }
}
See Also