wpf – Microsoft.Win32.OpenFileDialog.ShowDialog()何时返回null?

OpenFileDialogShowDialog方法返回一个可以为空的布尔值,如果用户单击确定则设置为true,如果单击取消则设置为false.什么时候返回null?文档没有说.
这在下面链接的问题中说明,但我在这里提到 Programming WPF (Chris Sells,Ian Griffiths)说:

ShowDialog will always return true or
false. … Only after a dialog has
been shown but before it’s been closed
is DialogResult null.

类似的问题:When would ShowDialog() return null?

并且:Why is DialogResult a nullable bool in WPF?

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...