IMessageBoxService.Show method (1 of 2)¶
Shows a modal message box owned by the active application window.
Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Common.Contracts.dll
NuGet Package: Eremex.Common.Contracts
Declaration¶
public DialogResult Show(string text, string caption, MessageBoxButtons buttons,
MessageBoxIcon icon)
Parameters¶
| name | type | description |
|---|---|---|
| text | string |
The message shown in the body of the message box. |
| caption | string |
The window caption. |
| buttons | MessageBoxButtons |
The set of buttons to offer. |
| icon | MessageBoxIcon |
The icon shown next to the message. |
Returns¶
| type | description |
|---|---|
DialogResult |
The button the user pressed. |
See Also¶
- enum DialogResult
- enum MessageBoxButtons
- enum MessageBoxIcon
- interface IMessageBoxService
- namespace Eremex.AvaloniaUI.Controls.ApplicationServices
IMessageBoxService.Show method (2 of 2)¶
Shows a modal message box owned by the specified window.
Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Common.Contracts.dll
NuGet Package: Eremex.Common.Contracts
Declaration¶
public DialogResult Show(IWindow? owner, string text, string caption, MessageBoxButtons buttons,
MessageBoxIcon icon)
Parameters¶
| name | type | description |
|---|---|---|
| owner | IWindow? |
The window the message box is shown on top of. When null, the active application window is used. |
| text | string |
The message shown in the body of the message box. |
| caption | string |
The window caption. |
| buttons | MessageBoxButtons |
The set of buttons to offer. |
| icon | MessageBoxIcon |
The icon shown next to the message. |
Returns¶
| type | description |
|---|---|
DialogResult |
The button the user pressed. |
See Also¶
- enum DialogResult
- interface IWindow
- enum MessageBoxButtons
- enum MessageBoxIcon
- interface IMessageBoxService
- namespace Eremex.AvaloniaUI.Controls.ApplicationServices