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

ThemedMessageBox.GetMessageBoxIcon(MessageBoxImage, Boolean) Method

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

Namespace: DevExpress.Xpf.Core

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, 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