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

  
        //only set DialogResult when window is ShowDialog before
        if(System.Windows.Interop.ComponentDispatcher.IsThreadModal)
            m_OwningWindow.DialogResult = true;
posted on 2014-07-10 15:06  明月几时有25  阅读(3191)  评论(0编辑  收藏  举报