Iterated a bit on the dialog view model design, it now uses the UI dispatcher to ensure the Close() method is invoked in the UI thread
This commit is contained in:
parent
e11922ae4f
commit
bedd49ce17
3 changed files with 29 additions and 24 deletions
|
|
@ -26,17 +26,17 @@ namespace Nuclex.Avalonia.ViewModels {
|
|||
|
||||
/// <summary>Initializes a new dialog result event argument container</summary>
|
||||
/// <param name="result">Result the dialog should exit with</param>
|
||||
public DialogResultEventArgs(object result) {
|
||||
public DialogResultEventArgs(object? result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
/// <summary>Result that should be returned from the dialog</summary>
|
||||
public object Result {
|
||||
public object? Result {
|
||||
get { return this.result; }
|
||||
}
|
||||
|
||||
/// <summary>Result that should be returned from the dialog</summary>
|
||||
private readonly object result;
|
||||
private readonly object? result;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue