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

时间:2014-07-12 13:29:39   收藏:0   阅读:361
  
        //only set DialogResult when window is ShowDialog before
        if(System.Windows.Interop.ComponentDispatcher.IsThreadModal)
            m_OwningWindow.DialogResult = true;

wpf 只在window是ShowDialog打开时才设置DialogResult,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!