none
Where is Modal Property?

    Question

  • Hello, I cannot find how to know if a Window is modal or modeless. In Win Form, there is the Modal property of the form that can indicate that, but I cannot find the equivalent in WPF.

    Any ideas? Thanks!
    Wednesday, September 12, 2007 2:05 PM

Answers

  •      System.Windows.Interop.ComponentDispatcher.IsThreadModal can tell you if the calling thread is currently running a modal hwnd.

    Sheva

    Wednesday, September 12, 2007 2:50 PM

All replies

  •      System.Windows.Interop.ComponentDispatcher.IsThreadModal can tell you if the calling thread is currently running a modal hwnd.

    Sheva

    Wednesday, September 12, 2007 2:50 PM
  • Wow! Thanks!  (I wonder why this is so far away from the Window class.)
    Wednesday, September 12, 2007 3:19 PM