Table of Contents

Class DialogInfo

Namespace
Tripous.Desktop
Assembly
Tripous.Desktop.dll

Provides context and result data for a dialog window.

public class DialogInfo
Inheritance
DialogInfo
Inherited Members
Extension Methods

Constructors

DialogInfo()

Initializes a new instance of the DialogInfo class.

public DialogInfo()

Fields

Params

User-defined dialog parameters.

public Dictionary<string, object> Params

Field Value

Dictionary<string, object>

Properties

Caller

Gets the caller control.

public Control Caller { get; }

Property Value

Control

Dialog

Gets the dialog window.

public DialogWindow Dialog { get; }

Property Value

DialogWindow

InputData

Gets the input data passed to the dialog.

public object InputData { get; }

Property Value

object

ModalResult

Gets the modal result.

public ModalResult ModalResult { get; }

Property Value

ModalResult

Parent

Gets the parent window.

public Window Parent { get; }

Property Value

Window

Result

Gets a value indicating whether the dialog result is OK.

public bool Result { get; }

Property Value

bool

ResultData

Gets the result data returned by the dialog.

public object ResultData { get; }

Property Value

object

Tag

Gets or sets user-defined data.

public object Tag { get; set; }

Property Value

object

Methods

ShowModal<T>(object, Control)

Shows a dialog window modally.

public Task<DialogInfo> ShowModal<T>(object InputData = null, Control Caller = null) where T : DialogWindow, new()

Parameters

InputData object

The input data passed to the dialog.

Caller Control

The caller control.

Returns

Task<DialogInfo>

This dialog information instance.

Type Parameters

T

The dialog window type.