//only set DialogResult when window is ShowDialog before
if(System.Windows.Interop.ComponentDispatcher.IsThreadModal)
m_OwningWindow.DialogResult = true;
wpf 只在window是ShowDialog打开时才设置DialogResult
时间: 2024-12-04 12:46:54
//only set DialogResult when window is ShowDialog before
if(System.Windows.Interop.ComponentDispatcher.IsThreadModal)
m_OwningWindow.DialogResult = true;
wpf 只在window是ShowDialog打开时才设置DialogResult