Table of Contents

Class MessageBox

Namespace
McServerLauncher.Views
Assembly
McServerLauncher.dll

Small cross-platform message box helper (Avalonia has no built-in one). Provides an information/warning dialog and a yes/no confirmation, both modal and localized.

public static class MessageBox
Inheritance
MessageBox
Inherited Members

Methods

ConfirmAsync(string, string, Window?)

Shows a Yes/No dialog. Returns true if the user accepts.

public static Task<bool> ConfirmAsync(string message, string title, Window? owner = null)

Parameters

message string
title string
owner Window

Returns

Task<bool>

ShowAsync(string, string, Window?)

Shows an OK-only dialog.

public static Task ShowAsync(string message, string title, Window? owner = null)

Parameters

message string
title string
owner Window

Returns

Task