Class DialogInfo
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
Properties
Caller
Gets the caller control.
public Control Caller { get; }
Property Value
- Control
Dialog
Gets the dialog window.
public DialogWindow Dialog { get; }
Property Value
InputData
Gets the input data passed to the dialog.
public object InputData { get; }
Property Value
ModalResult
Gets the modal result.
public ModalResult ModalResult { get; }
Property Value
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
ResultData
Gets the result data returned by the dialog.
public object ResultData { get; }
Property Value
Tag
Gets or sets user-defined data.
public object Tag { get; set; }
Property Value
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
InputDataobjectThe input data passed to the dialog.
CallerControlThe caller control.
Returns
- Task<DialogInfo>
This dialog information instance.
Type Parameters
TThe dialog window type.