这在下面链接的问题中说明,但我在这里提到
Programming WPF (Chris Sells,Ian Griffiths)说:
原文链接:https://www.f2er.com/windows/365343.htmlShowDialog will always return true or
false. … Only after a dialog has
been shown but before it’s been closed
is DialogResult null.