Skip to main content
All docs
V26.1
  • ThemedMessageBox.GetMessageBoxIcon(MessageBoxImage, Boolean) Method

    Gets a ThemedMessageBox‘s images and returns them as an ImageSource.

    Namespace: DevExpress.Xpf.Core

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

    NuGet Package: DevExpress.Wpf.Core

    Declaration

    public static ImageSource GetMessageBoxIcon(
        this MessageBoxImage image,
        bool UsePngImages = false
    )

    Parameters

    Name Type Description
    image MessageBoxImage

    An image displayed in the ThemedMessageBox.

    Optional Parameters

    Name Type Default Description
    UsePngImages Boolean False

    true, to use an image in the PNG format instead of SVG; otherwise, false.

    Returns

    Type Description
    ImageSource

    An ImageSource object that represents the icon.

    See Also