Skip to main content

Component Plug-In SDK 2026 R1

Method _showMessageBox

Last update: 19.06.2026

Namespace: Phoenix.BuilderUIClient
Assembly: Phoenix.BuilderUIClient.dll

_showMessageBox(string, string, MessageBoxButton, MessageBoxImage)

Shows a System.Windows.MessageBox to the user. Broken out to allow overriding for testing.

protected virtual MessageBoxResult _showMessageBox(string text, string caption, MessageBoxButton button, MessageBoxImage icon)

Parameters

text string

The message box text.

caption string

The message box caption.

button MessageBoxButton

The message box button type.

icon MessageBoxImage

The message box button type.

Returns

MessageBoxResult

The message box result selected by the user.

Connect with Ansys