Back to Devexpress

ImageEdit.Source Property

wpf-devexpress-dot-xpf-dot-editors-dot-imageedit.md

latest2.2 KB
Original Source

ImageEdit.Source Property

Gets or sets an image displayed within the editor. This is a dependency property.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public ImageSource Source { get; set; }
vb
Public Property Source As ImageSource

Property Value

TypeDescription
ImageSource

An ImageSource object that represents the image.

|

Remarks

xaml
<dxe:ImageEdit Source="/EditorsDemo;component/Images/Persons/m24.jpg" HorizontalAlignment="Center"/>

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

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.

wpf-imageedit-edit-images-in-separate-window/CS/ImageEditToEditModeBehavior/MainWindow.xaml#L35

xml
</Grid.RowDefinitions>
<dxe:ImageEdit x:Name="imageEdit" Source="{Binding Source, Mode=TwoWay}" ShowMenu="False"/>
<StackPanel Grid.Row="1" Margin="2" Orientation="Horizontal" HorizontalAlignment="Center">

See Also

ImageEdit Class

ImageEdit Members

DevExpress.Xpf.Editors Namespace