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

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

  

posted on 2020-09-01 12:05  积跬步---行千里  阅读(302)  评论(0编辑  收藏  举报