Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

ThemedMessageBox.GetMessageBoxIcon(MessageBoxImage, Boolean) Method

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

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.2.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