Closed pingu2k4 closed 3 years ago
WindowManager.ShowDialog
just wraps WPF's Window.ShowDialog()
, and returns the same value. Calling RequestClose(x)
sets the window's DialogResult
to x
.
From the docs, it looks like Window.ShowDialog()
will never return null, which means that WindowManager.ShowDialog
will never return null. I don't think there's anything I can do about this: changing the signature of that method would be a breaking change.
Closing as no response.
From a window requesting close after having been opened with ShowDialog on WindowManager, the returned result from ShowDialog will never be null. I tried
RequestClose();
andRequestClose(null);
and both instead return false.