Table of Contents

Class MessageBox

Namespace
Sdl3Sharp.Utilities
Assembly
Sdl3Sharp.dll
public class MessageBox
Inheritance
MessageBox
Inherited Members

Properties

Buttons

public IList<MessageBoxButton> Buttons { get; }

Property Value

IList<MessageBoxButton>

ColorScheme

public MessageBoxColorScheme? ColorScheme { get; set; }

Property Value

MessageBoxColorScheme?

Flags

public MessageBoxFlags Flags { get; set; }

Property Value

MessageBoxFlags

Message

public required string Message { get; set; }

Property Value

string

ParentWindow

public Window? ParentWindow { get; set; }

Property Value

Window

Title

public required string Title { get; set; }

Property Value

string

Methods

TryShow(out int)

public bool TryShow(out int resultButtonId)

Parameters

resultButtonId int

Returns

bool

TryShowSimple(MessageBoxFlags, string, string, Window?)

public static bool TryShowSimple(MessageBoxFlags flags, string title, string message, Window? parentWindow = null)

Parameters

flags MessageBoxFlags
title string
message string
parentWindow Window

Returns

bool