Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    DXImageExtension Class

    Allows you to use .png/.svg images from the DevExpress.Images.v25.1 assembly as an ImageSource.

    Namespace: DevExpress.Xpf.Core

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

    NuGet Package: DevExpress.Wpf.Core

    #Declaration

    public class DXImageExtension :
        DXImageExtensionBase

    #Remarks

    Use the DevExpress Image Picker tool to see images included in the DevExpress.Images.v25.1 assembly and copy their paths/names to the clipboard.

    The following code sample uses Image controls to display images from the DevExpress.Images.v25.1 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"/>
            <Image Source="{dx:DXImage Image='Apply_32x32.png'}" Height="32"/>
        </Grid>
    </Window>
    

    The following code snippets (auto-collected from DevExpress Examples) contain references to the DXImageExtension 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.

    #Inheritance

    Object
    MarkupExtension
    DevExpress.Xpf.DXBinding.DXMarkupExtensionBase
    DevExpress.Xpf.Core.DXImageExtensionBase
    DXImageExtension
    See Also