首页 > 代码库 > wpf 只在window是ShowDialog打开时才设置DialogResult

wpf 只在window是ShowDialog打开时才设置DialogResult

          //only set DialogResult when window is ShowDialog before        if(System.Windows.Interop.ComponentDispatcher.IsThreadModal)            m_OwningWindow.DialogResult = true;