Avalonia solo in codiceEnglish

API › RAVAL

RDialogBox class

Il riferimento e' in inglese: viene dai commenti del sorgente di RAVAL, che dalla 2.0 ha nomi e commenti in inglese.

public sealed class RDialogBox : Window

The window of RDialog: sign, text, an optional control under the text, buttons on the right. Built by RDialog; build it directly to put something else under the text, then RDialog.Show.

Costruttori

RDialogBox(RDialogKind kind, string title, string text, Control extra, params string[] buttons)

A dialog of the kind, with a title, a text, a control under it (or null) and the buttons.

Proprietà

int Answer { get; }

The index of the button pressed (−1: none, Esc, closed).

TextBox Input { get; set; }

The text box of Ask (null in the others): it gets the focus.

Control Body { get; }

What the window shows, sign, text and buttons (for a figure).

IReadOnlyList<Button> Buttons { get; }

The buttons, in the order given.

Metodi

void Pick(int index)

Presses a button, as a click does: the dialog closes with its index.