Skip to main content
A newer version of this page is available. .
All docs
V21.2

DXImageExtension.ImagePath Property

Gets or sets the path to a displayed .png/.svg image.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

Declaration

[ConstructorArgument("pathInfo")]
public DXImagePathInfo ImagePath { get; set; }

Property Value

Type Description
DevExpress.Xpf.Core.DXImagePathInfo

The path to an image in the DevExpress.Images.v21.2 assembly.

Remarks

Use the DevExpress Image Picker tool to see images included in the DevExpress.Images.v21.2 assembly and copy their paths to the clipboard.

The following code sample uses Image controls to display images from the DevExpress.Images.v21.2 assembly:

<Window ...
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core">
    <Grid>
        <Image Source="{dx:DXImage 'Images/Actions/Close_32x32.png'}" Height="32"/>
        <Image Source="{dx:DXImage 'SvgImages/Align/AlignHorizontalCenter.svg'}" Height="32"/>
    </Grid>
</Window>
See Also