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

EditableImageContent.ImageSource Property

Gets or sets an image displayed in an editable annotation.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Charts, DevExpress.Wpf.Charts

Declaration

public ImageSource ImageSource { get; set; }

Property Value

Type Description
ImageSource

An annotation image.

Remarks

The following example demonstrates how to create an editable image annotation:

<dxc:ChartControl>
  <dxc:ChartControl.Annotations>
    <dxc:Annotation>
        <dxc:Annotation.Content>
            <dxc:EditableImageContent ImageSource="pack://application:,,,/Icon_64x64.png"/>
        </dxc:Annotation.Content>
        <dxc:Annotation.AnchorPoint>
            <dxc:ChartAnchorPoint X="100" Y="170"/>
        </dxc:Annotation.AnchorPoint>
        <dxc:Annotation.ShapePosition>
            <dxc:RelativePosition/>
        </dxc:Annotation.ShapePosition>                        
    </dxc:Annotation>
  </dxc:ChartControl.Annotations>
  ...
</dxc:ChartControl>  
See Also