How to keep focus on a open window in wpf

已答复 How to keep focus on a open window in wpf

  • 2012年5月12日 1:55
     
     

    Hi, I have 2 windows, one window called MainOptions, and the other window called Option1.

    Now basically All I am trying to do is to disable my MainOptions window if the Option1 window is open.

    A good example would be a save dialog box. You cannot really interact with the other window until you save the file.

    Does anyone know how I could achieve this with my 2 windows?

    Thanks.

全部回复

  • 2012年5月12日 6:55
     
     已答复

    Have you tried to show Option1 using ShowDialog()?

    • 已标记为答案 Vicanade 2012年5月12日 16:24
    •