PopupImageEditSettings Class
Contains settings specific to the PopupImageEdit editor.
Namespace: DevExpress.Xpf.Editors.Settings
Assembly: DevExpress.Xpf.Core.v22.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
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:
<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));
}
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PopupImageEditSettings 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.